Hi,

 

In the code below setNodeValue is not updating the XML file with the new value.

 

Am I doing this correctly?

 

for(int k = 0; k<childlist->getLength(); k++)

{

      inNode = childlist->item(k);

      if(DOMNode::ELEMENT_NODE == inNode->getNodeType())

      {

            char* nodeName = XMLString::transcode(inNode->getNodeName());

            if(strcmp(nodeName, szTag.c_str()) == 0)

            {

                  inNode->getFirstChild()->setNodeValue(DOMStr("Paddy"));

                  break;

            }

      }

}

 

 

 

Thanks,

Enda

Reply via email to