[jdom-interest] DOCTYPE Error
Arvind Ramankole
ARamankole at npr.org
Tue Aug 26 07:36:32 PDT 2003
This is the correct URL path to DTD, I didnt give the correct url earlier.
http://shop.npr.org/xml/StockReport.dtd
Also please note that, I tried to give a relative path for the DTD It didnt
work either. I am running this as a parser service on ATG dynamo app server.
Arvind
-----Original Message-----
From: Alex Rosen [mailto:arosen at novell.com]
Sent: Tuesday, August 26, 2003 10:32 AM
To: jdom-interest at jdom.org; Arvind Ramankole
Subject: Re: [jdom-interest] DOCTYPE Error
When I try to access that DTD URL, I get a web page, not a DTD. The
parser is choking because it's expecting the DTD.
Alex
>>> Arvind Ramankole <ARamankole at npr.org> 8/25/2003 3:40:45 PM >>>
Hi All,
I am new to jdom and using SAXBuilder, I am getting
following
error.
org.jdom.JDOMException: Error on line 1 of document
http://www.mysite.org/xml/StockReport.dtd: The
markup declarations contained or pointed to by the document type
declaration must be well-formed.
When I include the DTD inside the XML file it works fine with out
any
errors. It also works when I take out the DOCTYPE from the xml file.
please advice.
Arvind
XML file----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE StockReport SYSTEM
"http://www.mysite.org/xml/StockReport.dtd:">
<StockReport>
<Inventory>
<Item>NPAMSHOL</Item>
<Available>28</Available>
</Inventory>
<Inventory>
<Item>NPATCT100WL</Item>
<Available>44</Available>
</Inventory>
</StockReport>
DTD file---
<!DOCTYPE StockReport [
<!ELEMENT StockReport (Inventory+)>
<!ELEMENT Inventory (Item,Available)>
<!ELEMENT Item (#PCDATA)>
<!ELEMENT Available (#PCDATA)>
]>
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list