W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Reg.DTD

From: Venkata_Katari <Venkata_Katari@satyam.com>
Date: Tue, 24 Jul 2001 11:48:17 +0530
Message-ID: <A44765C986F8D411995B00B0D0795F4B04A91D25@hht.satyam.com>
To: www-dom@w3.org
Hi,
i am new to XML.i started with DTD's.i am practising with some examples.
i am using IE 5.0 version.first i tried a sample program with internal DTD.
the xample is follows	:-

<?xml version="1.0"?>
<!DOCTYPE note [
  <!ELEMENT note (to,from,heading,body)>
  <!ELEMENT to      (#PCDATA)>  
  <!ELEMENT from    (#PCDATA)>  
  <!ELEMENT heading (#PCDATA)>  
  <!ELEMENT body    (#PCDATA)>]>
  
  <note>  
	  <from>Jani</from>  
	  <to>Tove</to>  
	  <heading>Reminder</heading>  
	  <body>Don't forget me this weekend</body>
  </note>

actually the child nodes, (to,from,heading,body) should follow the same
sequence in the xml document.
but even though i interchanged the sequence in the XML document, it did not
give me any error.
do i need to set any properties in the browser?.

regards
raju kvk
Received on Tuesday, 24 July 2001 02:21:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT