Hi all,

I still have a problem with entity resolver:

here is a fraction of XML document

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "test.dtd">
<root>

anyway I get systemId="d:\tc\test.dtd" in resolveEntity method of my
EntityResolver.

when I specify

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "xml/test.dtd">
<root>

I get systemId="d:\tc\xml\test.dtd"

Why? Where is it getting "d:\tc\" from? I parse XML Document using following
code

      InputSource inputSource = new InputSource(new
java.io.StringReader(getText()));
        parser.setEntityResolver(new MyEntityResolver());       
      parser.parse(inputSource);

Thanks

Tomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to