Using a slightly modified version of the DOMPrint sample application, I am encountering an issue validating an XML file against specified schemas.
Message: attribute 'xpathDefaultNamespace' cannot appear in global schema declarations
I've attached the modified DOMPrint source to this ticket. The modifications add the setExternalNoNamespaceSchemaLocation and setExternalNoNamespaceSchemaLocation calls on the parser at lines 386 amd 387. The arguments passed to each are the locations of the schema files, and the space separated namespace and schema file locations, respectively. The call to DOMPrint is as follows:
DOMPrint -v=always -n -s xml-valid.xml
The error does not occur if the following line is removed from the xml.xsd schema file:
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
I've attached the following files for replication purposes: