RE: SAX newbie Q : absolute DTD path in system id
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.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format