Re: XML schema support (Stuart Malin)

2008-05-19 Thread Richard Wolf
Just an FYI, NSXMLDocument's initWithContentsOfURL:options:error: and initWithData:options:error: methods allow you to verify an XML document using a DTD or XMLSchema XSD. One of the "options" you can XOR is NSXMLDocumentValidate. As verifying against a DTD or XSD are, pretty much, the

Re: Accessing attributes of XML (Christian Graus)

2008-05-05 Thread Richard Wolf
On May 5, 2008, at 6:49 PM, [EMAIL PROTECTED] wrote: I had to pick up the XPath stuff recently for a project I was working on, and I've got to say that once you get yourself thinking in that way, it's really very nice for inspecting XML files, giving you great, readable control for grabbing

Re: Cocoa-dev Digest, Vol 5, Issue 730

2008-05-05 Thread Richard Wolf
Christian, It's just like I posted to Mr. Gecko. XQuery is your friend. XPath returns nodes, XQuery allows you to return values. An XQuery to return the text inside your DiaIndex/Items is simple ... it would look like this: let $result := ./DiaIndex/Item return $result Notice that X

Re: Reading XML (Mr. Gecko)

2008-05-04 Thread Richard Wolf
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 w

NSXMLDocument xsi:noNamespaceSchemaLocation attribute accepted in validateAndReturnError method?

2008-02-28 Thread Richard Wolf
Hi guys, kind of a funky question ... not a crisis or anything, but I was curious if anyone knows ... or if this is a bug. I am happy to radar away if it's a bug. I actually Googled "NSXMLDocument xsi:noNamespaceSchemaLocation" and it comes up a bust ... zero hits. :) So I thought I wou