XmlDocument_newFromSAX

Creates a new XML document instance from a SAX Parser and a SAX InputSource.

Syntax

C++

 #include "InterfaceFactory.h"
 
 DIRXML_EXPORT 
 XmlDocument * IFAPI XmlDocument_newFromSAX ( 
    NAMESPACE(SAX)Parser        *parser,
    NAMESPACE(SAX)InputSource   *inputSource);
 
 

Parameters

parser
(IN) Points to a SAX parser interface
inputSource
(IN) Points to a SAX input source interface.

Return Values

Returns a pointer to an XML document interface.

Remarks

In NativeInterface.h, the getDocumentSAX method returns a SAX parser and the getDocumentInputSource method returns an input source.

The returned instance must be destroyed by calling the XmlDocument_destroy method.

The XML document instance does not take ownership of the passed SAX parser instance or the passed SAX input source instance and so they must be freed after the XML document instance is destroyed.