Page

Billing System Using DTD In XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE PURCHASEORDER [
<!ELEMENT PURCHASEORDER (CONTENT*)>
<!ELEMENT CONTENT (BILLTO+)>
<!ELEMENT BILLTO (NAME,STREET,CITY,STATE,ZIP,IMAGES,PAYMENT)>
<!ELEMENT NAME (#PCDATA)>
<!ELEMENT STREET (#PCDATA)>
<!ELEMENT CITY (#PCDATA)>
<!ELEMENT STATE (#PCDATA)>
<!ELEMENT ZIP (#PCDATA)>

<!ELEMENT CONTENT (SHIPTO+)>
<!ELEMENT SHIPTO (NAME,STREET,CITY,STATE,ZIP,IMAGES,PAYMENT)>
<!ELEMENT NAME (#PCDATA)>
<!ELEMENT STREET (#PCDATA)>
<!ELEMENT CITY (#PCDATA)>
<!ELEMENT STATE (#PCDATA)>
<!ELEMENT ZIP (#PCDATA)>
<!ELEMENT IMAGES EMPTY>
<!ELEMENT PAYMENT EMPTY>
<!ENTITY xyz "LOVELY PROFESSIONAL UNIVERSITY">
<!ENTITY abc "XML DOCUMENTS OF PURCHASE ORDER BILLING SYSTEM ">

<!ATTLIST IMAGES WIDTH CDATA "WIDTH">
<!ATTLIST PAYMENT MODE CDATA "MODE">


]>

<PURCHASEORDER>
&xyz;
<BILLTO>
&abc;
<NAME>RAM NARAYAN PATEL</NAME>
<STREET>STREET NUMBER-8</STREET>
<CITY>JALANDHAR</CITY>
<STATE>PUNJAB</STATE>
<ZIP>144401</ZIP>
<IMAGES>
<IMAGES WIDTH="100" />
</IMAGES>
<PAYMENT>
<PAYMENT MODE="ONLINE"/>
<PAYMENT MODE="OFFLINE"/>
</PAYMENT>
</BILLTO>

&xyz;<BILLTO>
<NAME>ANKUR SAXENA</NAME>
<STREET>STREET NUMBER-9</STREET>
<CITY>PHAGWARA</CITY>
<STATE>PUNJAB</STATE>
<ZIP>144401</ZIP>
<IMAGES>
<IMAGES WIDTH="100" />
</IMAGES>
<PAYMENT>
<PAYMENT MODE="ONLINE"/>
<PAYMENT MODE="OFFLINE"/>
</PAYMENT>
</BILLTO>

&xyz;<SHIPTO>
<NAME>RAM NARAYAN PATEL</NAME>
<STREET>STREET NUMBER-8</STREET>
<CITY>JALANDHAR</CITY>
<STATE>PUNJAB</STATE>
<ZIP>144401</ZIP>
<IMAGES>
<IMAGES WIDTH="100" />
</IMAGES>
<PAYMENT>
<PAYMENT MODE="ONLINE"/>
<PAYMENT MODE="OFFLINE"/>
</PAYMENT>
</SHIPTO>

&xyz;<SHIPTO>
<NAME>AASIM BASHIR</NAME>
<STREET>STREET NUMBER-10</STREET>
<CITY>SHRINAGAR</CITY>
<STATE>JAMMU AND KASHMIR</STATE>
<ZIP>144401</ZIP>
<IMAGES>
<IMAGES WIDTH="100" />
</IMAGES>
<PAYMENT>
<PAYMENT MODE="ONLINE"/>
<PAYMENT MODE="OFFLINE"/>
</PAYMENT>
</SHIPTO>
</PURCHASEORDER>


No comments:

Post a Comment