Is there any like framework that will let you do that?
Is there an example for how to read xml?
Is there a tutorial?

Yes, yes, and yes.

Mr. Gecko,

In answer to your queries ... one word.  XQuery.

NSXMLNode's objectsForXQuery:error: and objectsForXQuery:constants:error: do exactly what you want and they work -exactly- was you describe -- they search an NSXMLNode (which can be your NSDocument root) and return an NSArray of values matching your search criteria. The methods are even smart enough to translate the data into Cocoa forms (NSStrings, NSDates, etc.). This page:

http://developer.apple.com/documentation/Cocoa/Conceptual/ NSXML_Concepts/NSXML.html

shows exactly how to do what you want to do. In particular, you'll want to read this:

http://developer.apple.com/documentation/Cocoa/Conceptual/ NSXML_Concepts/Articles/QueryingXML.html#//apple_ref/doc/uid/TP40001258

Your next task is to learn XQuery. If you are going to deal with searching XML data for values, this is a MUST, but you will be amply rewarded for all your efforts. As someone pointed out learning XQuery (and XPath) requires some effort. O'Reilly has a really terrific book on XQuery if you need to learn the basics (it also covers what you need to know about XPath to use XQuery).

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to