I'm trying to generate data contracts from supplied XSD's. Svcutil.exe
is throwing this error at me:
The
'http://www.w3.org/2001/XMLSchema:any'
element is not supported in this context."
Looking in the XSD, element of type any
appear twice. This is the first time it appears.
<xs:element minOccurs="0" maxOccurs="1" name="Markup">
<xs:complexType>
<xs:all>
<xs:any processContents="lax" />
</xs:all>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
From my research on this, it seems like xs:any
can't be in an xs:all
element. But I can't find a specification or equivalent that definitively shows this.
Can xs:any
appear in an xs:all
? Or is it not valid?