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

Referencing an external DTD


doctype format
hi,
I am facing problems while trying to parse an XML file, when the
correspoding DTD is a jar file resource. I get the following error

org.xml.sax.SAXException: Fatal Error:
URI=jar:file:/u/arun/projects/base/jar/c.jar!/config/prices/parser/input.xml
Line=2: External entity not found:
"jar:file:/u/arun/projects/base/jar/c.jar!/config/prices/parser/../gui/forma
t.dtd".
at deshaw.common.format.parser.XmlParser.fatalError(XmlParser.java:575)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3185)
at .....

my xml file URI is 
jar:file:/u/arun/projects/base/jar/c.jar!/config/prices/parser/input.xml

the dtd is in the same jar "c.jar", albeit in a different directory "gui"
jar:file:/u/arun/projects/base/jar/c.jar!/config/prices/gui/format.dtd

in input.xml i am trying to reference the dtd as follows
<!DOCTYPE format SYSTEM "../gui/format.dtd">

however this relative reference does not work, and throws the above
exception. i can't understand why this fails. Can somebody throw more light
on this problem, and help me resolve it?
Thanks
arun

Things will be bright at 10 P.M.  A cop will shine a light in your face.


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.