I'm trying to create a xsd from a xml file. The xml contains a FLD element, but the name attribute specifies the name of the field, I'm trying to create the xsd so that it creates all the field element names in the xsd, Ive used the XML Schema Definition Tool (xsd.exe), but it only creates one FLD element. Below is the XML:
<?xml version="1.0" encoding="UTF-8"?>
<PARAM>
<GRP ID="GRP1">
<FLD NAME="LSTOFCY" TYPE="Char"/>
<FLD NAME="LITMREF" TYPE="Char"/>
<FLD NAME="LLOT" TYPE="Char"/>
<FLD NAME="LLOCSRC" TYPE="Char"/>
<FLD NAME="LLOCDES" TYPE="Char"/>
<FLD NAME="LSERNUM" TYPE="Char"/>
<FLD NAME="LSOHNUM" TYPE="Char"/>
<FLD NAME="LSOPLIN" TYPE="Integer"/>
<FLD NAME="LQTY" TYPE="Decimal"/>
<FLD NAME="LSTAT" TYPE="Integer"/>
<FLD NAME="LMES" TYPE="Char"/>
</GRP>
</PARAM>
Is there another tool that will be able to create the schema with all the fields?
No comments:
Post a Comment