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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
