Microsoft Deployment Toolkit
Documentation Library HRESULT CreateNode(DOMNodeType type, LPCWSTR name, LPCWSTR ns, IXMLDOMNode **ppNode) |
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