XmlDocument_newFromDOM

Creates a new XML document instance from a DOM tree.

Syntax

C++

 #include "InterfaceFactory.h"
 
 DIRXML_EXPORT 
 XmlDocument * IFAPI XmlDocument_newFromDOM ( 
    NAMESPACE(DOM)Document   *document);
 

Parameters

document
(IN) Points to a DOM document interface.

Return Values

Returns a pointer to an XML document interface.

Remarks

The getDocument method in NativeInterface.h returns an instace of a DOM document interface.

The returned instance must be destroyed with a call to XmlDocument_destroy()

The XmlDocument instance does NOT take ownership of the passed DOM Document instance and so it must be freed AFTER the XmlDocument instance is destroyed.