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

RE: SAX newbie Q : absolute DTD path in system id

  • From: Jim Sweeney <jsweeney@c...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Wed, 26 Jan 2000 08:15:22 -0800

xml dtd path
My original question was a little confusing, so I'm posting a clarification
I sent to Bill:

Yes, the DTD exists in the directory specified by an absolute path such as: 

<!DOCTYPE foo SYSTEM "c:\xml\dtd\foo.dtd">

but if the XML file with the above reference is in c:\xml\files\, I get a
"FileNotFoundException: c:\xml\files\c:\xml\dtd\foo.dtd" when I attempt to
execute "java SAXApp file:///C:/xml/files/foo.xml"

if I change the DOCTYPE reference to:

<!DOCTYPE foo SYSTEM "foo.dtd">

it finds the DTD and the document is parsed.  It's like the application is
hardwired to assume the system id is a relative path.  I'd like to know how
to make my SAX/XP app accept an absolute DTD path.

Jim Sweeney

> -----Original Message-----
> From: Sparkman Bill [mailto:Sparkman_Bill@e...]
> Sent: Tuesday, January 25, 2000 1:24 PM
> To: 'Jim Sweeney'
> Subject: RE: SAX newbie Q : absolute DTD path in system id
> Hi jim:
> I'm confused.  
> Does the DTD exist?
> Is it where the dtd tag in the xml file says it will be?
> It does not seem like you should be getting an error like this.
> Bill 

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@i... the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.


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.
First Name
Last Name
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.