NSXMLDocument and schema validation (Not finding schema document?)
NSXMLDocument and schema validation (Not finding schema document?)
- Subject: NSXMLDocument and schema validation (Not finding schema document?)
- From: Leif Harrison <email@hidden>
- Date: Mon, 27 Jul 2009 14:45:27 -0700
Has anyone had success using NSXMLDocument to validate XML using an
XML Schema document? I can parse and process my XML file fine as long
as I don't validate, but when I call validateAndReturnError: I'm
getting back the error "xmlSchemaParse: could not load ''.
As far as I can tell, the schema URL in my XML document is fine (I can
access it using Safari), and I've validated the same XML document
using the same schema URL using XML Nanny. So...I can't figure out
why NSXMLDocument can't find my schema. Heck, I've even grabbed the
schema URL from the NSXMLDocument root element (by getting the
attribute "xsi:schemaLocation") and checked that I can access the URL
directly using NSString stringWithContentsOfURL:.
Does NSXMLDocument actually use the URL specified via
xsi:schemaLocation, or do I need to actually put the schema document
somewhere else?
- Leif Harrison
email@hidden
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden