How to write xsd for below xml:
<prodName>testProduct</prodName>
<prodID>1234</prodID>
<prodID>37363</prodID>
<prodID>132432</prodID>
Find my xsd below,my xsd definition is not working for multiple "prodID", it works fine with sing "prodID", but if I try to pass more than one "prodID" its giving error. Can someone help how to handle xsd for above xml scenario.
<complexType name="prodDetail">
<sequence>
<element name=“prodName" type="string" minOccurs="0" maxOccurs="1"></element>
<element name=“prodID" type="string" minOccurs="0" maxOccurs="1"></element>
</element>
</sequence>
</complexType>
Appreciated your help in advance! Thanks!
No comments:
Post a Comment