Forum Moderators: open

Message Too Old, No Replies

<!ELEMENT . do i need it?

i don't get it

         

electricocean

9:21 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



what is <!ELEMENT >

i have my basic code:

<?xml version="1.0"?>
<musicplayer>
<song id="1">
<url>http://mysite.com/file.mp3</url>
<name>Uncle #*$!er</name>
<artist>South Park</artist>
<album>South Park Soundtrack</album>
<time>1:06</time>
</song>
</musicplayer>

where do i put the dtd <!ELEMENT>

thanks,
electricocean

DrDoc

4:14 pm on Sep 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<!ELEMENT> is something used in DTDs to describe elements ... There's no actual <!ELEMENT> tag that you need to put in your XML doc.

electricocean

8:35 pm on Sep 5, 2005 (gmt 0)

10+ Year Member



yes i know that put i don't understand the dtd's can you explain it?

Stu_Rogers

8:31 am on Sep 6, 2005 (gmt 0)

10+ Year Member



A DTD, Document Type Definition, is a system for writing schemas. A schema contains rules about your XML and is used to validate it. Schemas are not required, but they are important for keeping your XML documents consistent.

Google will bring up hundreds of DTD tutorials but I find W3Schools is always a good place to start...

[w3schools.com...]