I have a very simple XML & XSD which is throwing following error during parsing.
org.xml.sax.SAXParseException: s4s-elt-schema-ns: The namespace of element 'Config' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
XML Goes here :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Config>
<Test Script="final.sh" />
</Config>
XSD Goes here:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Config">
<xs:complexType>
<xs:all>
<xs:element name="Test" minOccurs="0">
<xs:complexType>
<xs:attribute name="Script" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>