HRESULT SECXMLDocument::AddTextTag(LPTSTR strTagName, LPTSTR strText, long nType, IXMLDOMNode** ppRetVal, IXMLDOMNode* pParent)
Adds an element with a text child element to the specified parent.
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.
strText
The text value of the child.
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.