Your xml validator is trying to validate a document.
The document says that it conforms to a schema at some location.
THe validator fetches that schema.
But omg: the document that it fetches is not an xml schema at all! It's just some random bit of xml.
To fix this:
A xml namespace name is just a name. In this case, http://www.library.com
. The schema validator application needs to know how to get the xml +schema document+ for that name. In the absense of anything else, it's probably just doing an http fetch and getting an html page.
You need to tell your validator that the namespace http://www.library.com
is defined by a schema document at http://www.library.com/static/theschema.xsd
(or whatever). Associating xml namespaces with schema documents is application-dependent. Most apps that work with XML have a cache of some sort that you have to configure and set up.
If you are working in java, then you need to implement an EntityResolver (I think) which, when the parser asks for http://www.library.com
, returns an input stream containing the XML. You'd usually do this as a java resource file.