XML Parsing
XML Parsing
- Subject: XML Parsing
- From: Angela Brett <email@hidden>
- Date: Sat, 3 Nov 2001 23:00:45 +1300
Hi,
I've been struggling with XMLServices. I can get the XML parsed into
a CFTree by using:
tree=CFXMLTreeCreateFromData(kCFAllocatorDefault,theXML,NULL,kCFXMLParserSkipWhitespace,kCFXMLNodeCurrentVersion);
And then I can get to the different nodes in the tree and see what
they are using various CFTree functions. But I can't work out how to
get attributes - i.e if in the XML is something like <thing
name="Joe" colour="green"/> I don't know how to get the values for
name and colour.
Also, I'm wondering if there is a nicer way to parse (non plist) XML,
I don't really like CoreFoundation very much.
--
Angela Brett email@hidden
http://acronyms.co.nz/angela
A mathematician is a machine for turning coffee into theorems -- Paul Erdos