Advertisement

06.01.2008 at 06:50PM PDT, ID: 23448729
[x]
Attachment Details

Simple Example to parse xml with TXMLDocument

Asked by slaterm1961 in Extensible Markup Language (XML), Delphi Programming, Delphi Programming Language

Tags: Delphi 2007

Hi,
I'm trying to write a Delphi Application that parses some xml data from a remote webserver. The structure of the xml data obtained from the remote source is as follows.

What is the simplest way to download and parse this info using the TXMLDocument component in delphi ?

I would want to load the obtained data into an array for further processing.

<newsItems>
        <item>
                <itemType>story</itemType>
                <itemExpiryDateTime>unix timepstamp</itemExpiryDateTime>
                <itemId>23</itemId>
        </item>
        <item>
                <itemType>message</itemType>
                <itemExpiryDateTime>unix timepstamp</itemExpiryDateTime>
                <itemId>23</itemId>
        </item>
</newsItems>Start Free Trial
 
Keywords: Simple Example to parse xml with TXM…
 
Loading Advertisement...
 
[+][-]06.03.2008 at 07:28PM PDT, ID: 21706266

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 11:04PM PDT, ID: 21707286

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Markup Language (XML), Delphi Programming, Delphi Programming Language
Tags: Delphi 2007
Sign Up Now!
Solution Provided By: TheRealLoki
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628