I'm using the noNamespaceSchemaLocation attribute to specify the location of the XML schema Arbortext should use to validate my XML document. Arbortext appears to be properly picking up the schema and validating based upon it. I can style the tags, and when adding tags, Arbortext displays the valid tags from the schema. If I try to add tags that are not valid, Arbortext appropriately displays an error.
So, Arbortext does appear to be correctly validating based on the XML schema I've declared in the noNamespaceSchemaLocation attribute. However, Arbortext also doesn't seem to like the noNamespaceSchemaLocation attribute being used on the root element of my document. It displays the following error:
Could not find top level attribute: xsi:noNamespaceSchemaLocation
The start tag of the root level element looks like this:
<senate_journal <br="/> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="senate_journal.xsd">
My understanding of namespace and schema-aware applications is that there is no need to declare the noNamesapceSchemaLocation attribute from the http://www.w3.org/2001/XMLSchema-instance namespace. I even tried to declare this attribute as valid on my root level element in the XML schema, and I received the following error:
The {target namespace} of 'noNamespaceSchemaLocation' must not match 'http://www.w3.org/2001/XMLSchema-instance'.
That error makes sense because http://www.w3.org/2001/XMLSchema-instance is a special namespace.
Does anyone know how to declare the schema location without having Arbortext display errors about the attribute you use to declare the schema location?