dcsimg
Resolving relative URI's using DOM and JAXP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Hankermeyer
Posted On:   Tuesday, March 4, 2003 06:22 AM

Hi, I'm using JAXP to create a DOM document. I'm using an EntityResolver to resolve my DocType URI. My XMl looks like: <?xml version="1.0"?> However, I get an error when I parse the XML: "Relative URI "my.dtd" can not be resolved without a document URI." It works when I use: <?xml version="1.0"?> I have seen several posts about using and EntityResolver however, my EntityResolver is not even called when I use a relative URI. Several people have said "Set the SystemId" but I'm not using SAX and don't see an easy way to do   More>>

Hi,
I'm using JAXP to create a DOM document. I'm using an EntityResolver to resolve my DocType URI. My XMl looks like:



<?xml version="1.0"?>







However, I get an error when I parse the XML:



"Relative URI "my.dtd" can not be resolved without a document URI."



It works when I use:



<?xml version="1.0"?>







I have seen several posts about using and EntityResolver however, my EntityResolver is not even called when I use a relative URI. Several people have said "Set the SystemId" but I'm not using SAX and don't see an easy way to do this. Any help would be greatly appreciated.



thanks,
John

   <<Less

Re: Resolving relative URI's using DOM and JAXP

Posted By:   Roseanne_Zhang  
Posted On:   Wednesday, March 5, 2003 05:40 AM

See your answer in this FAQ entry http://www.jguru.com/faq/view.jsp?EID=126121
About | Sitemap | Contact