Reading XML Via Delphi 6 App?

From: Rich Morey (rwmorey_at_27east.com)
Date: 01/24/04


Date: 24 Jan 2004 08:39:05 -0800

I am trying to read data out of an XML file.. The format of which is
below:
 

 <item rdf:about="http://newyork.craigslist.org/jsy/eng/22989284.html">
  <title>Manager, Web Technology</title>
  <link>http://newyork.craigslist.org/jsy/eng/22989284.html>
  <dc:creator>webmaster@craigslist.org</dc:creator>
  <dc:language>en-us</dc:language>
  <dc:title>Manager, Web Technology</dc:title>
  <dc:source>
http://newyork.craigslist.org/jsy/eng/22989284.html>
  <dc:rights>Copyright 2004, craigslist.org</dc:rights>
  <dc:date>2004-01-23T14:30:29</dc:date>
  <dc:type>text</dc:type>
  </item>

I am able to read the title and link from the above XML using the
TXMLDocument using this code:

varLink = XMLDoc.ChildNodes['link'].Text;
varTitle = XMLDoc.ChildNodes['title'].Text;

What I would also like to read is the DATE from the "DC:DATE" tag, but
I can't figure out how to do it..

Any ideas?

Thanks,

Rich



Relevant Pages

  • Re: Suggestion needed on data storage format in text file
    ... Hi ImOk, our initial datastructure was in the XML format itself, ... But the other setting will still be in XML file. ... We are using SimpleXML functions, DOM ... I'd go back to them and explain why they need a database. ...
    (comp.lang.php)
  • Re: Suggestion needed on data storage format in text file
    ... Hi ImOk, our initial datastructure was in the XML format itself, ... <!-- Main Email detail id, ... But the other setting will still be in XML file. ... We are using SimpleXML functions, DOM ...
    (comp.lang.php)
  • Re: XML formatting to HTML...beginner question
    ... general format: ... I want to load in this xml file and create an HTML file built around ... doesnt seem like i can combine html/javascript in a XSL file, ...
    (microsoft.public.dotnet.xml)
  • Re: Date/Time. Looked Everywhere. Urgent. Thanks.
    ... >>> I created a dataset from a XML file. ... One of the dataset fields is ... >>> The date displayed has the following format, the same as in the XML ... >>> Miguel ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Word2003 XML as data source ?
    ... transform into a Word document containing a table in WordProcessingML ... Word 2003 WordProcessingML format). ... I'm trying to use an XML file as a data source for mailmerging in Word ...
    (microsoft.public.word.mailmerge.fields)