[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: DOCTYPE declaration in the document prolog

  • To: "P. Karki" <karki@d...>,<xml-dev@l...>
  • Subject: RE: DOCTYPE declaration in the document prolog
  • From: "Vinod Kharade" <vkharade@z...>
  • Date: Tue, 24 Sep 2002 14:47:17 +0530
  • Thread-index: AcJjq6RMzq0A6IciTqqtAn9gKkGmsw==
  • Thread-topic: DOCTYPE declaration in the document prolog

document prolog
Title: RE: DOCTYPE declaration in the document prolog

Hi Karki,

Your guess is right.
The XML sample which u have is invalid.

This could be one of the valid xml docs.

<?xml version="1.0"?>
<!DOCTYPE test
[
<!ELEMENT test (data)>
<!ELEMENT data (year, kcode, bcode)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT kcode (#PCDATA)>
<!ELEMENT bcode (#PCDATA)>
]>
<test>
<data>
<year>2002</year>
<kcode>001</kcode>
<bcode>002</bcode>
</data>
</test>

You can go thru MSXML(from microsoft.com) to get more info.

Regards,
Vinod.


-----Original Message-----
From: P. Karki [mailto:karki@p...]
Sent: Tuesday, September 24, 2002 2:28 PM
To: xml-dev@l...
Subject: DOCTYPE declaration in the document prolog

Is following XML sample valid?
Please note that the internal declaration subset does not
declare the "test" element. IE normally opens this sample.
My understanding was that the root element should
also be declared in the internal declaration subset
if there is no external declaration subset.
Am I misunderstood?
Where can I find clear information about this?

<?xml version="1.0"?>
<!DOCTYPE test
[
<!ELEMENT data (year, kcode, bcode)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT kcode (#PCDATA)>
<!ELEMENT bcode (#PCDATA)>
]>
<test>
<data>
<year>2002</year>
<kcode>001</kcode>
<bcode>002</bcode>
</data>
</test>

--
P. Karki
Daitec Co., Ltd.
Hiroshima




-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.