Call this method to create a new node:

Pointer<IXMLDOMNode> pNewChild

pXmlDom->CreateNode(NODE_ELEMENT, L"MyElement", L"", &pNewChild);

Once you create a new node, you can add it as a child to another node by calling the parent’s appendChild method.

Related Topics

IXmlDocument Interface