Re: Sample Cocoa Core Foundation XML Parsing Code
Re: Sample Cocoa Core Foundation XML Parsing Code
- Subject: Re: Sample Cocoa Core Foundation XML Parsing Code
- From: Chris Ridd <email@hidden>
- Date: Tue, 11 Jun 2002 13:10:43 +0100
On 11/6/02 4:34 am, email@hidden <email@hidden> wrote:
>
Does anyone have any sample code where they are using the XML Core Foundation
>
calls to parse in a hardcoded xml document in their applications bundle? You
>
need to setup a CFURLRef for the .xml file, and then use
>
CFXMLTreeCreateFromData to create the Tree. Then you use various calls to
>
parse the list (assuming you are using high level API).
>
>
Help!?!?!
>
>
Steve Sheets
Which bit were you having the problem with?
AFAICR, you use NSURL's +fileURLWithPath to convert a filename to a URL,
then cast the resulting NSURL * to a CFURLRef (toll-free bridging) when
passing it to the CFXMLParserCreateBlahBlah.
Or were you having problems finding the thing in your bundle?
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.