I need clarification in one of the scenarios <xsd:any>.
What if the attribute value namespace ##anyand attribute processContentsdo not exist (default value strict)?
What will happen here if the processor checks the elements for any circuits?
An example for clarification. Here is the XSD section:
......
<xsd:complexType name="reservedType">
<xsd:sequence>
<xsd:any namespace="##any"/>
</xsd:sequence>
</xsd:complexType>
..........
And here is the XML:
<c:reserved>
<message xmlns="unknown_schema">
<msg>Hello</msg>
</message>
</c:reserved>
Whenever I try to validate this XML in the above diagram, I get:
The matching wildcard is strict, but no declaration can be found for element 'message'.
How does this happen, but the namespace ##any?
source
share