Deathbreaker
New Member
Given an XML file like\[code\]<stuff> <noidea> <name>x</name> <type>a</type> </noidea> <whatthesethings> <name>y</name> <type>n</type> </whatthesethings> <mightbenamed> <name>z</name> <type>c</type> </mightbenamed></stuff>\[/code\]In this example, I know what each elements' children are, and I have their names, so I can write an XSD for it, but in reality, the elements in could have any name. So, I need something like\[code\]<xs:element name="stuff"> <xs:complexType> <xs:sequence> <xs:element !!!unknownName!!! minOccurs="1" maxOccurs="unbounded"> <xs:complexType> <xs:element name="name" type="xs:string" /> <xs:element name="type" type="xs:string" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType></xs:element>\[/code\]In question 943659, \[code\]<xs:any/>\[/code\] is mentioned, but I do not see that it can be used as an extension base that can then be validated.Is this possible to do in XSD (if so, an example would be appreciated), or is the example document an abuse of XML to begin with?