Yes. But why is parser asking for entity "file:///d:/tc/test.dtd"? If I have
only "test.dtd" in XML document it should bring only "test.dtd" in systemId
and give me a chance to resolve it in custom EntityResolver, or not? Or do I
have to remove "file:///d:/tc/" from systemId? That's strange, isn't it? 

Tomas

-----Original Message-----
From: John Utz [mailto:[EMAIL PROTECTED]
Sent: Friday, February 15, 2002 3:55 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Still have EntityResolver problem


i assume that you are running your program from the directory d:\tc,
correct?

On Fri, 15 Feb 2002, Cirip Tomas wrote:

> 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]
> 
> 


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

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

Reply via email to