Manage document while setting DOM.
[shibboleth/cpp-xmltooling.git] / xmltooling / DOMCachingXMLObject.h
index b850531..bf14c8c 100644 (file)
@@ -49,9 +49,10 @@ namespace xmltooling {
         /**\r
          * Sets the DOM representation of this XMLObject.\r
          * \r
-         * @param dom DOM representation of this XMLObject\r
+         * @param dom       DOM representation of this XMLObject\r
+         * @param bindDocument  true if the object should take ownership of the associated Document\r
          */\r
-        virtual void setDOM(DOMElement* dom)=0;\r
+        virtual void setDOM(DOMElement* dom, bool bindDocument=false)=0;\r
     \r
         /**\r
          * Assigns ownership of a DOM document to the XMLObject.\r