need help with first DTD

webmasterbeta

New Member
Greetings.

I've RTFMed and RTFMed and RTFMed .. now I'm ready to write my first DTD, this one to store business card data (which will in turn be imported into graphics software that can parse XML data and create artwork.

Is this form correct for a DTD? What should I have done differently?

Thanks in advance for the help, and here's the code:

<?xml version="1.0?>
<!ELEMENT bc (fullname,title1,title2,industry,address1,address2,city,state,zip,country,direct,mobile,pager,main,f ax,email,orderID)
<!ELEMENT fullfame (#PCDATA)>
<!ELEMENT title1 (#PCDATA)>
<!ELEMENT title2 (#PCDATA)>
<!ELEMENT industry (#PCDATA)>
<!ELEMENT address1 (#PCDATA)>
<!ELEMENT address2 (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT zip (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT direct (#PCDATA)>
<!ELEMENT mobile (#PCDATA)>
<!ELEMENT pager (#PCDATA)>
<!ELEMENT main (#PCDATA)>
<!ELEMENT fax (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT orderID (#PCDATA)>
 
Back
Top