[jdom-interest] DOCTYPE Error
Alex Rosen
arosen at novell.com
Tue Aug 26 07:31:43 PDT 2003
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@yourhost.com
More information about the jdom-interest
mailing list