Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XML parser for objective C



ObjC/Cocoa has XML parsers. Theres an event driven parser, which I don't
know much about, but theres also NSXMLDocument. This inherits from
NSXMLNode, and as a result you can use xpath queries using methods like
nodesForXPath: and objectsForXQuery: to query the document for all the
attributes or whatever you want. In case you don't know about XPath, read
http://www.w3schools.com/xpath/default.asp, its really cool!

Hope that helped :)

-----Original Message-----
From: David Chan [mailto:email@hidden]
Sent: 30 September 2005 10:53
To: email@hidden
Subject: XML parser for objective C


Dear All,
 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.

Regards
David
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately. The contents of
this email must not be disclosed or copied without the sender's consent. We
cannot accept any responsibility for viruses, so please scan all
attachments. The statements and opinions expressed in this message are those
of the author and do not necessarily reflect those of the company. The
company does not take any responsibility for the views of the author. 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.