How to generate xml sample form xsd with XMLSchema:sequence -
how create xml sample xsp contains xmlschema:sequence ?
i tried http://www.xsd2xml.com/ returns error
error!!! 'http://www.w3.org/2001/xmlschema:sequence' element not supported in context. instead of sample.
original xsd has types in separate files , copied types end of xsd maybe causes exception.
your xsd missing following line near bottom prior last xs:sequence:
<xs:complextype name="property"> adding line complete last declaration,
<xs:complextype name="property"> <xs:sequence> <xs:element name="key" type="xs:string" minoccurs="0"/> <xs:element name="stringval" type="xs:string" minoccurs="0"/> <xs:element name="dateval" type="xs:date" minoccurs="0"/> <xs:element name="booleanval" type="xs:boolean" minoccurs="0"/> <xs:element name="integerval" minoccurs="0"> <xs:simpletype> <xs:restriction base="xs:integer"/> </xs:simpletype> </xs:element> <xs:element name="decimalval" minoccurs="0"> <xs:simpletype> <xs:restriction base="xs:decimal"> <xs:totaldigits value="15"/> <xs:fractiondigits value="2"/> </xs:restriction> </xs:simpletype> </xs:element> </xs:sequence> </xs:complextype> and make xsd valid.
Comments
Post a Comment