Steve Ebersole <steven.ebers...@gmail.com> wrote on 08/17/2010 04:38:03 PM:

> Steve Ebersole <steven.ebers...@gmail.com>
>
> 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 <st...@hibernate.org>
> http://hibernate.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to