XML Schema with complext type containing <xs:all> and <xs:any>?
问题 I want to define a complex type that contains elements that may or may not exist, and also allows for additional undefined elements so I've got something like this: <xs:complexType name="MyType"> <xs:sequence> <xs:element name="A" type="xs:float" minOccurs="0" maxOccurs="1" /> <xs:element name="B" type="xs:float" minOccurs="0" maxOccurs="1" /> <xs:element name="C" type="xs:float" minOccurs="0" maxOccurs="1" /> <xs:any minOccurs="0" processContents="skip"/> </xs:sequence> </xs:complexType> I