SECXMLDocument::AddTag

HRESULT SECXMLDocument::AddTag(LPTSTR strTagName, long nType, IXMLDOMNode** ppRetVal, IXMLDOMNode* pParent)

Adds a node of the specified type to the specified parent element.

Defined in: XMLDomDoc.h

Return Value

Returns S_OK if successful, the error code otherwise

Parameters

strTagName

The tag name of the child element to be created.

nType

The type of element to be created. Either one of NODE_ELEMENT, NODE_TEXT, NODE_CDATA_SECTION.

ppRetVal

The out parameter where a reference to the newly created element is returned. Can be NULL.

pParent

The parent element under which to create the new child element. If null, uses the root element of the document.