K
kurtrips
Hi,
The schema tag (the root tag) of a schema file looks like
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
It is mentioned on many web pages across the net that
"the parser does not connect to the server and try to download the
document that's found at http://www.w3.org/2001/XMLSchema. Indeed
there may not be any such document".
So if this is only used as prefix, I may instead have
<xs:schema xmlns:xs="anything"
elementFormDefault="qualified">.
But when I validate my xml with this new xsd, I get "The element
'Books' is used but not declared in the DTD/Schema." It works fine in
case 1. (Books is the root element of my xml file).
Is this because this URL is hardcoded somewhere in the code of the
parser itself?
(I am using the MSXML 3.0 parser.)
The schema tag (the root tag) of a schema file looks like
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
It is mentioned on many web pages across the net that
"the parser does not connect to the server and try to download the
document that's found at http://www.w3.org/2001/XMLSchema. Indeed
there may not be any such document".
So if this is only used as prefix, I may instead have
<xs:schema xmlns:xs="anything"
elementFormDefault="qualified">.
But when I validate my xml with this new xsd, I get "The element
'Books' is used but not declared in the DTD/Schema." It works fine in
case 1. (Books is the root element of my xml file).
Is this because this URL is hardcoded somewhere in the code of the
parser itself?
(I am using the MSXML 3.0 parser.)