Hi, I am trying to validate a XML document using Xerces against a 2000 schema
I am using XMLSPY 3.5 to create the documents which uses the 2000 standards. I don't really know if this makes a difference. But I can't get the validation to seem to recognize the Schema file at all.
Here is what the header of the files look like. Is this correct
XML file:
<?xml version="1.0" encoding="UTF-8"?>
<datamart xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="D:\Development\LOM 6.0 (Rio Grande)\Resources\datamart.xsd">
<dateDimension name="DATE_DIM" yearRange="10" startDate="02/14/2000">
...
Schema file:
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Greg Heidel (eLoyalty) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" elementFormDefault="qualified">
<xsd:element name="datamart">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="table" maxOccurs="unbounded">
...
Are there any obvious mistakes here.
The error message I get back is:
message: Element type "datamart" must be declared.
Thanks. Any help would be appreciated.
