Title: RE: EntityResolver

Have you tried something along the following lines:

public InputSource resolveEntity (String publicId, String systemId)
        throws SAXException, IOException
{
        StringReader reader = new StringReader("");
        return new InputSource(reader);
}

Thanks,
Pradeep

> -----Original Message-----
> From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 1:16 AM
> To: '[EMAIL PROTECTED]'
> Cc: DESBOIS Sebastien
> Subject: EntityResolver
>
>
>               Hi All,
>
>       I just had a look at the documentation about
> EntityResolver. I wanted to
> use it to force my parser not to validate my XML file and not
> to search the
> DTD even if there is a reference in the file.
>       I had a look on the David Megginson web site. It is
> specified in it that
> the parser calls the resolveEntity method before opening any external
> entity EXCEPT the top-level document entities including the
> DTD subset!
> Which is really a problem for me!
>      
>       Does anyone already use the EntityResolver to force its
> parser ignoring
> the DTD reference?
>
>       Thanks a lot for help
>      
>       David.
>
>
> David DELGRANCHE
> [EMAIL PROTECTED]       
> Tel: 02.99 05.34.25  
> Fax: 02.99.05.34.05
> Sogitec Industries
> 24, Avenue Lavoisier
> ZI du Champ Niguel
> 35174 BRUZ CEDEX
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to