• 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: Sample Cocoa Core Foundation XML Parsing Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Sample Cocoa Core Foundation XML Parsing Code (From: email@hidden)

  • Prev by Date: NSMatrix and actions
  • Next by Date: Re: Current process
  • Previous by thread: Sample Cocoa Core Foundation XML Parsing Code
  • Next by thread: Drag and Drop Oddities
  • Index(es):
    • Date
    • Thread