I've spent some time going through the documented APIs and could not find an
answer to this question.
The XML Schema Part 1 spec, specifically section 3.2.2, says that an
<xs:attribute> declaration in an .xsd file may contain "{any attributes with
non-schema namespace . . }". Thus, the following is valid:
<xs:attribute name="attr" type="xs:integer" foo:bar="1"/>
assuming that the <xs:schema> element had xmlns:foo="something". The same is
true for <xs:element> declarations.
Xerces does happily load an .xsd file with such a declaration in it.
However, I cannot find any way to retrieve the information from these
non-schema attributes from the XSModel. It seems as though they would have
to be associated with XSAttributeDeclaration / XSElementDeclaration, but
there are no APIs for it there or on XSObject.
Is this a hole in the Xerces schema APIs, or am I missing something?
Thanks for any help,
Ceej
aka Chris Hillery