I'm trying to build a schema using an <xs:any />
node. When I validate it says the inserted child nodes aren't defined. I thought any
allowed me to have undefined child nodes.
My schema:
<xs:schema xmlns="Policy" targetNamespace="Policy" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Request">
<xs:complexType>
<xs:sequence>
<xs:any />
</xs:sequence>
<xs:attribute name="Routing" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:schema>
My XML:
<gp:Request Routing="foo" xmlns:gp="Policy">
<bar/>
</gp:Request>
It flags the bar
node. What am I doing wrong?