• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML Parsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: XML Parsing
      • From: Tom Waters <email@hidden>
References: 
 >XML Parsing (From: Angela Brett <email@hidden>)

  • Prev by Date: Subclasses in projectbuilder
  • Next by Date: Re: Subclasses in projectbuilder
  • Previous by thread: XML Parsing
  • Next by thread: Re: XML Parsing
  • Index(es):
    • Date
    • Thread