When using an xml schema, I am getting the error:
myNamespace grammar not found
and can not figure out why. (myNamespace is actually a url of course)
The parser doesn't seem to be even finding the schema file, even though it
is in the same directory. I have tried an absolute path as well. Nothing
different happens if I move the schema file.
My document looks like:
<tag xmlns="myNamespace"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:schemaLocation="myNamespace schema.xsd">
...
</tag>
and my schema looks like this:
<xsd:schema
targetNamespace="myNamespace"
xmlns="myNamespace"
xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
elementFormDefault="qualified">
...
</xsd:schema>
Is something wrong here?
Also, does validation have to be enabled in order to get the parser to load
the schema and apply fixed/default attribute values?
Any help is appreciated.
-Alex