commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Valladolid" <pvallado...@dfi-intl.com>
Subject RE: [Digester] How do I get Digester to ignore the <!DOCTYPE> tag
Date Wed, 14 Jul 2004 21:57:05 GMT
I want the Digester to ignore the <!DOCTYPE> tag because I'm having it
"digest" XML retrieved from a database.  As previously mentioned, we
have no control over what goes into the XML as it does not originate
from us.

Paolo Valladolid
Software Developer
DFI International Government Services
 

-----Original Message-----
From: Craig McClanahan [mailto:craigmcc@apache.org] 
Sent: Wednesday, July 14, 2004 5:54 PM
To: Jakarta Commons Users List
Subject: Re: [Digester] How do I get Digester to ignore the <!DOCTYPE>
tag

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


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