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="1.0" encoding="UTF-8"?>
<!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
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="1.0" encoding="UTF-8"?>
<!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