xs:any wrapper xml schema validation

ykongbam

New Member
Hi I'm trying to find a way to develop a schema that extends another schema validate XML structures.Lets say we have Schema A and it contains an extension point using the \[code\]<xs:any>\[/code\] elementSo that we have a schema like this:Source.xsd:\[code\]<xs:complexType name="AType"> <xs:complexContent> <xs:sequence> <xs:element name="B"/> <xs:any/> </xs:sequence> </xs:complexContent></xs:complexType><xs:element name="A" type="AType"/>\[/code\]Can I make another schema that will validate this XML with a reference to the original schema?Extended.xml:\[code\]<A> <B></B> <C></C></A>\[/code\]I would like to create a schema that will validate the whole \[code\]A\[/code\] (with the \[code\]C\[/code\]) element without me having to rewrite the whole \[code\]AType\[/code\] to incorporate the \[code\]C\[/code\] element. I also can't use the \[code\]redefine\[/code\] element.Thanks in advance!
 
Back
Top