dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: need help with first DTD

  1. #1
    Join Date
    Nov 2003
    Posts
    3

    need help with first DTD

    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)>

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    try suing XMLWriter software...
    its a shareware app,and is extremely user friendly..It will validate your XML/DTD documents for well formation
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles