[DUG] Parsing xml
Kyley Harris
kyleyharris at gmail.com
Tue Oct 4 13:17:31 NZDT 2005
I use the standard XML DOM object that comes with D7, which is just a
COM wrapper of the windows one. It works fine. If you actually look at
the code you will notice that it will take a file, or a string... you
just have to look.
XML := TXMLDocument.Create(nil);
try
if DataIsFile then
XML.LoadFromFile(AData) else
XML.LoadFromXML(AData);
.... etc
On 10/4/05, Jeremy Coulter <vss at vss.co.nz> wrote:
>
> Hi All.
> Does anyone have a nice wee routine that would parse out the values of some
> XML from a line of data and give me back the values?
> I know there are a lot fo parsing controls etc. out there, but none seem to
> parse a line of xml, but rather an xml file.
> Ideally I would like to pass in the string of XML, then the element I want
> to get the value of.
>
> Thanks, Jeremy
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
--
Kyley Harris
Harris Software
+64-9-8455274
+64-21-671-821
More information about the Delphi
mailing list