• 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 parser for objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML parser for objective C


  • Subject: Re: XML parser for objective C
  • From: Scott Andrew <email@hidden>
  • Date: Fri, 30 Sep 2005 07:33:09 -0700

libxml2 is a great parser if need an pre 10.4 support i was using it for a while. I recently decided that 10.4 is going to be a requirement for my next rev so I moved to NSXMLDocument which is a joy to use.

Make sure you learn about XPath for selecting nodes. I use http:// www.w3schools.com/xpath/default.asp as a quick reference.

NSXML will also take HTML, which i use it for alot with project, so you can XPATH to parse through an HTML document.

Scott Andrew

On Sep 30, 2005, at 5:38 AM, Bryan Bonczek wrote:

What are the list of known problems in NSXMLParser? I have been using it for a little while now and I've had no problems. If anyone has any information on these known issues, can you please post it?

Thanks!

Bryan Bonczek
email@hidden

On Sep 30, 2005, at 6:11 AM, Alexander v. Below wrote:


I would also suggest ether CFXMLParser (with the said limitations), or NSXML as mentioned.

A lot of work went into NSXML, and I use it happily whenever pre- Tiger compatibility is not an issue.

There is a third option, NSXMLParser, but personally I think it has a number of problems and thus is not worth messing with given the other Apple and non-Apple options.

Bye

Alex

Am 30.09.2005 um 12:03 schrieb Niko Matsakis:



I've just got my hands on objective C and cocoa and at the moment, I was
given task to parse some XML files using the objective C project I am
developing to get some attribute from the XML. I was given a folder of XML
parser library written in C, but I am not sure how to use that to parse the
XML files. Is there any sample code out there which I can refer to so that I
can have better idea of how to parse XML files from my objective C class?
Thanks a lot.




Apple's options are:

1. The CF xml parser:
2. The tree based Cocoa parser (10.4 only):



[...]


In my own projects I used the expats bindings because I was familiar with it. When I last looked at it, the CF XML parser had somewhat underwhelming support of XML (no namespaces, for example) and (what I found to be) an unintuitive API. I haven't used the tree based parser yet, it may be better.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40racepointmedia.com


This email sent to 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:
40adelphia.net


This email sent to 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
  • Follow-Ups:
    • Re: XML parser for objective C
      • From: Andy Lee <email@hidden>
References: 
 >XML parser for objective C (From: David Chan <email@hidden>)
 >Re: XML parser for objective C (From: Niko Matsakis <email@hidden>)
 >Re: XML parser for objective C (From: "Alexander v. Below" <email@hidden>)
 >Re: XML parser for objective C (From: Bryan Bonczek <email@hidden>)

  • Prev by Date: Custom error panels
  • Next by Date: Re: Turning NSMenuItem into separator
  • Previous by thread: Re: XML parser for objective C
  • Next by thread: Re: XML parser for objective C
  • Index(es):
    • Date
    • Thread