IXMLDocument::createElementIXMLDocument::createElement*
*Contents  *Index  *Topic Contents
*Previous Topic: IXMLDocument::get_doctype
*Next Topic: IXMLElement::get_tagName

IXMLDocument::createElement

HRESULT IXMLDocument::createElement(
    [in] VARIANT vType, 
    [optional, in] VARIANT var1,
    [retval, out] IXMLElement **ppElem)

Creates a new element that can then be added to a portion of the tree.

vType
Variant of type VT_I4, which contains an integer from the xmlelemTYPE enumeration, and indicates the type of the element that is desired:
typedef enum xmlelemTYPE {  
    XMLELEMTYPE_ELEMENT,
    XMLELEMTYPE_TEXT,
    XMLELEMTYPE_COMMENT,
    XMLELEMTYPE_DOCUMENT,
    XMLELEMTYPE_DTD,
    XMLELEMTYPE_OTHER
} XMLELEM_TYPE;
var1
Optional. String used by IXMLElement::put_tagName to bind the name to the newly formed element.
ppElem
Indirect pointer in which to return the desired element.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.