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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMD DTD File

Status
Not open for further replies.

DJHinett

Programmer
Nov 4, 2003
1
GB
Hi,

I have this XML File:

<?xml version=&quot;1.0&quot;?>
<!DOCTYPE Registration SYSTEM &quot;register.dtd&quot;>
<Registration>
<UserId>1000001</UserId>
<AccountId>1234567</AccountId>
<SiteId>1122548</SiteId>
</Registration>

And i need to write a valid dtd page for it (register.dtd).
This is what i have so far and it doesn't seem to work.

<!ELEMENT Registration (UserId,AccountId,SiteId) >
<!ELEMENT UserId (#PCDATA) >
<!ELEMENT AccountId (#PCDATA) >
<!ELEMENT SiteId (#PCDATA) >

Please could someone point me in the write direction.

Thanks,
Paul
 
Looks good to me. What are you doing with it that makes it not work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top