Creates a new text node and returns the IHTMLDOMNode pointer.
Syntax
HRESULT createTextNode(
    BSTR text,
    IHTMLDOMNode **newTextNode
);
Parameters
- text
- String (BSTR) that specifies the text of the new node.
- newTextNode
- Address of a pointer to an IHTMLDOMNode interface that returns the newly created text node.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method always returns S_OK; check the rootElem returned. If NULL is returned, the method has failed to create a new text node.