Steve Ebersole <[email protected]> wrote on 08/17/2010 04:38:03 PM:
> Steve Ebersole <[email protected]> > > Please respond to j-users > > On Tue, 2010-08-17 at 16:24 -0400, Michael Glavassevich wrote: > > Sure but the second one is a text include. This is not processed as an > > XML document, even if it looks like one, so > > EntityResolver2.getExternalSubset() won't be called for it. > > Even though EntityResolver is called? I'll try, but a bit surprised > EntityResolver would be called though EntityResolver2 would not. EntityResolver.resolveEntity() is called for any kind of external resource, not necessarily XML, that the parser is trying to load. I am suggesting that you use a different method which is only called in the context of processing an XML document and only if it doesn't already have an external DTD. > -- > Steve Ebersole <[email protected]> > http://hibernate.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected]
