You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Hellmann Peter (ext) ICM RDC IS VDR RD" <Pe...@mch.siemens.de> on 2002/03/01 09:02:18 UTC
AW: xerces 2.0.0 DOCTYPE root "null" error
Bernie,
instead of the !DOCTYPE line you must specify the schema file in the root
tag of your xml document file like this:
<YOURROOTTAG xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:NamespaceSchemaLocation='dtd/book.xsd'>
cheers,
Peter
-----Ursprüngliche Nachricht-----
Von: Rob Finneran [mailto:rob@digitalskyscrapers.com]
Gesendet: Donnerstag, 28. Februar 2002 21:53
An: xerces-j-user@xml.apache.org; BLenz@BerMark.com
Betreff: RE: xerces 2.0.0 DOCTYPE root "null" error
I'm just trying to learn that myself!
I'll post if I get to it soon enough.
Any other people care to shed some light on this?
Rob
-----Original Message-----
From: Bernhard Lenz [mailto:Blenz@BerMark.com]
Sent: Thursday, February 28, 2002 5:46 AM
To: xerces-j-user@xml.apache.org; rob@digitalskyscrapers.com
Subject: RE: xerces 2.0.0 DOCTYPE root "null" error
Thanks Rob.
Is it possible to use a schema instead of a dtd? How would I specify to use
a schema in this xml?
Thanks
Bernie
-----Original Message-----
From: Rob Finneran [mailto:rob@digitalskyscrapers.com]
Sent: Wednesday, February 27, 2002 10:06 PM
To: xerces-j-user@xml.apache.org
Subject: RE: xerces 2.0.0 DOCTYPE root "null" error
Hi Bernhard,
Where's your:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE bk:book SYSTEM "dtd/book.dtd">
?
-----Original Message-----
From: Bernhard Lenz [mailto:BLenz@BerMark.com]
Sent: Wednesday, February 27, 2002 6:48 PM
To: xerces-j-user@xml.apache.org
Subject: xerces 2.0.0 DOCTYPE root "null" error
I'm trying to parse the following xml using xerces 2.0.0 with validation and
namespaceaware turned on.
<?xml version="1.0"?>
<!-- both namespace prefixes are available throughout -->
<bk:book xmlns:bk='urn:loc.gov:books'
xmlns:isbn='urn:ISBN:0-395-36341-6'>
<bk:title>Cheaper by the Dozen</bk:title>
<isbn:number>1568491379</isbn:number>
</bk:book>
However I'm getting the following error:
Document root element "html", must match DOCTYPE root "null".
Does anybody know how to handle this error?
Thanks
Bernie