commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@apache.org>
Subject Re: [Digester] How do I get Digester to ignore the <!DOCTYPE> tag
Date Wed, 14 Jul 2004 21:53:39 GMT
Paolo Valladolid wrote:

>This is the EntityResolver class I wrote:
>
>public class MessageEntityResolver implements EntityResolver {
>  public MessageEntityResolver() {
>  }
>
>  public InputSource resolveEntity (String publicId, String systemId) {
>    System.out.println("systemid=" + systemId);
>    return null;
>  }
>
>}
>
>I added this line to the code calling the Digester:
>
>digester.setEntityResolver(new MessageEntityResolver());
>
>However, the digester still tried to process the <!DOCTYPE> tag.
>  
>
What exactly do you mean by "process the <!DOCTYPE> tag"?  There's 
nothing that can tell the parser to skip it ... so I guess the real 
question is "why is processing the <!DOCTYPE> tag a problem?"

>Paolo Valladolid
>Software Developer
>DFI International Government Services
> 
>  
>

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message