xsd to xml

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hi all,<br/>
<br/>
this is my xsd<br/>
<br/>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema <br/>
<xs:element name="car <br/>
<xs:simpleType><br/>
<xs:restriction base="xs:string <br/>
<xs:enumeration value="Audi"/><br/>
<xs:enumeration value="Golf"/><br/>
<xs:enumeration value="BMW"/><br/>
</xs:restriction><br/>
</xs:simpleType><br/>
</xs:element><br/>
</xs:schema><br/>
<br/>
from XML Schema Explorer i right click on <>Car and click on generate sample xml file option there its not gave Audi, Golf and BMW instaed its showing first element as "Audi", like below<br/>
<br/>
<?xml version="1.0" encoding="utf-8"?><br/>
<car>Audi</car><br/>
<br/>
why its not showing all 3 data?, wat to do come all 3 data?<hr class="sig Thanks In Advance, Jeyaseelan

View the full article
 
Back
Top