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

DTD Definitions - Need Help

Status
Not open for further replies.

Brian4342

Programmer
Nov 8, 2011
1
0
0
GB
Hi guys well im new to this forum and to dtd's.

The problem that I am having is trying to give my "price" a default currency value “£”.

The code that I have come up with for my dtd is posted below;

<!ELEMENT catalogue (movie+)>
<!ELEMENT movie (title,director,actor,category,place,time,price)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT director (#PCDATA)>
<!ELEMENT actor (CDATA)>
<!ELEMENT category (CDATA)>
<!ELEMENT place (#PCDATA)>
<!ELEMENT time (CDATA)>
<!ELEMENT price (CDATA)>

Any help would be greatly appreciated :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top