I may be wrong ( I often am ), but it seems that when installing an XMLEntityResolver and a DOMLSResourceResolver into a DOMLSParser , the one replaces the other.

I am not rightly sure that I know which one I should be using - and I'm also not rightly sure I know the purpose and difference between them, except for having different APIs. I also do not really understand the advantages that one may have over the other.

http://xerces.apache.org/xerces-c/apiDocs-3/classXMLEntityResolver.html
"The parser will then allow the application to intercept any external entities (including the external DTD subset and external parameter entities, if any) before including them."

http://xerces.apache.org/xerces-c/apiDocs-3/classDOMLSResourceResolver.html
"The DOMLSParser will then allow the application to intercept any external entities (including the external DTD subset and external parameter entities) before including them."

I see that the XMLEntityResolver essentially returns an InputSource*, whereas the DOMLSResourceResolver returns a DOMLSInput*.

Thanks
        Ben.

Reply via email to