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

Beginner question

Status
Not open for further replies.

Gatorajc

MIS
Mar 1, 2002
423
US
I am learing XML out of a book and have been going through the examples. Well the following example says it should throw error indicating that it is not valid. But guess what it does not. It runs fine. Is it because the way I am opening the file in the browser or what.

<?xml version = &quot;1.0&quot;?>
<!DOCTYPE note [
<!ELEMENT note ( message )>
<!ELEMENT message ( #PCDATA )>
<!ATTLIST message
number CDATA #REQUIRED
date CDATA #REQUIRED
from CDATA #FIXED &quot;Kathy Shepherd&quot;>
]>
<note>
<message number=&quot;10&quot; date=&quot;073001&quot; from=&quot;someone else&quot;>
Remember to buy milk on the way home from work
</message>
</note>

Any help to this XML beginer I would be very grateful. AJ
I would lose my head if it wasn't attached. [roll1]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top