How to know if a DOMDocument is owned by a parser
问题 I am looking into an issue where an API is getting called from two different sources. We have an API called dispatch. Its signature is as follows. DOMDocument* dispatch( DOMDocument * requestDocument ) We observed that this API can be called by passing a DOMDocument object that is A stand-alone DOMDocument object created using DOMImplementation::createDocument http://xerces.apache.org/xerces-c/apiDocs-3/classDOMImplementation.html A parse owned DOMDocument object created using