• 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
NSXMLDocument and schema validation (Not finding schema document?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: How to set the string and integer value of an NSButtonCell using NSOutilneView
  • Next by Date: nil there not here
  • Previous by thread: Re: How to set the string and integer value of an NSButtonCell using NSOutilneView
  • Next by thread: nil there not here
  • Index(es):
    • Date
    • Thread