Re: XML Parsing
Re: XML Parsing
- Subject: Re: XML Parsing
- From: Aaron Tuller <email@hidden>
- Date: Sat, 3 Nov 2001 10:19:47 -0800
look at OmniExpat!
it converts XML into an NSDictionary. it's really simple (one
category on NSString), and works well.
ftp://ftp.omnigroup.com/pub/software/Source/MacOSX/Frameworks/OmniExpat-2001-09-30.tar.gz
-aaron
At 11:00 PM +1300 11/3/01, Angela Brett wrote:
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >XML Parsing (From: Angela Brett <email@hidden>) |