Tuesday, 15 September 2015

Generate XSD schema for a complex XML -



Generate XSD schema for a complex XML -

what schema best suit next xml

<r> <a> <b>sd</b> <c> asd </c> </a> <a> <d> asd </d> </a> <a> <e>sd</e> </a> <a>lol1</a> <a>1.1</a> </r>

note here element "a" may occur number of times construction within of "a" varying

edit:

this might 1 way accomplish it:

<xs:element name="r"> <xs:complextype> <xs:sequence> <xs:choice maxoccurs="unbounded" minoccurs="0"> ( internal content ) </xs:choice> </xs:sequence> </xs:complextype> </xs:element>

where, internal content contain schemas of each of elements named "a" in sequential order

do comment

this might 1 way accomplish it:

<xs:element name="r"> <xs:complextype> <xs:sequence> <xs:choice maxoccurs="unbounded" minoccurs="0"> ( internal content ) </xs:choice> </xs:sequence> </xs:complextype> </xs:element>

where, internal content contain schemas of each of elements named "a" in sequential order

xml xsd schema

No comments:

Post a Comment