Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTD and XML

Status
Not open for further replies.

durug

Technical User
Mar 22, 2002
335
CA
Hi everybody!
I have here this DTD schema and I can't figure out how to write a correct XML that will be validated against this DTD. Can anybody give me a short example or maybe a tool where you provide the DTD and he is creating a XML after the DTD file.

THanks a lot!
Here is the DTD

<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<!ELEMENT ASNHeader (ASNLine*)>
<!-- Required fields -->
<!ATTLIST ASNHeader ASNNumber CDATA #REQUIRED>
<!ATTLIST ASNHeader ShipToID CDATA #REQUIRED>
<!ELEMENT ASNLine (ASNDetail*)>
<!-- Required fields -->
<!ATTLIST ASNLine ASNLine CDATA #REQUIRED>
<!ATTLIST ASNLine OrderNumber CDATA #REQUIRED>
<!ATTLIST ASNLine OrderLine CDATA #REQUIRED>
<!ELEMENT ASNDetail EMPTY>
<!-- Required field -->
<!ATTLIST ASNDetail Quantity CDATA #REQUIRED>
<!ELEMENT ASNLoad (ASNHeader+)>

Thanks!
Durug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top