xml - XSD validation error: usage of xs:any in xs:element -
in xml schema have following definition:
<xs:element name="otherresultdata"> <xs:any processcontents="lax" minoccurs="0" /> </xs:element>
this give validation error:
the content of 'otherresultdata' must match (annotation?, (simpletype | complextype)?, (unique | key | keyref)*)). problem found starting at: any.
is there way define as: "there can content here, if types can found in xsd, valid"?
you need like
<xs:element name="otherresultdata"> <xs:complextype> <xs:any processcontents="lax" minoccurs="0" maxoccurs="unbounded"/> </xs:complextype> </xs:element>
Comments
Post a Comment