Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XML- Add child element XML- Add child elementTo: NULL Date: 6/6/2008 2:41:00 PM Hi, I am working with C++ and MSXML 6.0, I am able to read and write(new) an XML file, but I am not able to edit using MSXML. For ex: To add a child element to my existing XML file I: Load the xmldoc: hr = pXMLDoc->load(bstrFileName,&isSuccess); ... hr = pXMLDoc->selectSingleNode(bstr, &pXMLNode); NodeType = VariantToType(NODE_ELEMENT); hr = pXMLDoc->createNode(NodeType,bstr,NULL,&pXMLChildNode); hr = pXMLNode->appendChild(pXMLChildNode,&pXMLInsertedNode); I am getting an error here. I am not able to append child to the node which i got from the selectsinglenode method. any help is appreciated. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
