Hi all
I have a problem using my app with Java 1.4.
My XML has the following DOCTYPE line:
<!DOCTYPE MYDEF PUBLIC "-//company//DTD MYDEF//EN" "mydef.xml">
I'm using my own entity resolver because the DTD is inside the application jar.
public class MyResolver implements EntityResolver
{
public InputSource resolveEntity (String publicId, String systemId)
{
if (publicId != null && "-//company//DTD
MYDEF//EN".equals(publicId))
{
// read and return the dtd as an input source
.........
}
// use the default behaviour
return null;
}
}
This approach works fine with Java 1.3.x but running the app with Java 1.4 I'll
get the following error message:
"Relative URI "mydef.xml"; can not be resolved without a base URI."
Can anybody give me a hint how to solve this problem. I don't have (need) a base
URI.
BTW: Many thanks for the incredible great DOM4J XML API.
Cheers,
Stephan
----------------------------------------------------------------------
The contents of this communication are confidential to the normal user of
the email address to which it was sent. If you have received this email
in error, any use, dissemination, forwarding, printing or copying of this
email is strictly prohibited. If this is the case, please notify the
sender and delete this message.
----------------------------------------------------------------------
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user