Re: XML parser for objective C
Re: XML parser for objective C
- Subject: Re: XML parser for objective C
- From: Craig Hunter <email@hidden>
- Date: Fri, 30 Sep 2005 12:37:11 -0400
> Message: 12
> Date: Fri, 30 Sep 2005 05:35:05 -0700
> From: Greg Herlihy <email@hidden>
> Subject: Re: XML parser for objective C
> To: David Chan <email@hidden>, <email@hidden>
> Message-ID: <BF627F09.681%email@hidden>
> Content-Type: text/plain; charset="US-ASCII"
>
> I would recommend the open-source libxml2 which Apple first included with
> Panther. For Tiger Apple added libxslt and libexslt. The command line tools
> xmllint and xsltproc are built from these libraries.
>
> libxml2 has a very straightforward C interface and is quite easy to use,
> both for SAX or for DOM construction. libxml2 expects documents to be UTF-8
> encoded, so documents in other character sets would have to be converted
> first.
I agree with this. I tried several approaches to parsing XML on OS X, from
both Cocoa and Applescript Studio apps, and have had the best results from
using libxml. It's fairly easy to walk and XML tree and retrieve the info
you want with libxml, it's well documented online, and it's very portable.
Craig
--
Dr. Craig A. Hunter
NASA Langley Research Center
AAAC / Configuration Aerodynamics Branch
(757) 864-3020
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden