G
Guest
Hi,
I am using xerces dom C++, I want to change an element value, here is
the code I am using but the element in the file is not getting updated.
...
...
...
xercesc_2_4:
OMDocument* xmlDoc = parser->getDocument();
xercesc:
OMNodeList* list;
xercesc:
OMNode* node;
list = xmlDoc->getElementsByTagName( XMLString::transcode(Key.c_str())
);
node = list->item(0);
if( xercesc:
OMNode::ELEMENT_NODE == node->getNodeType() )
{
node->setNodeValue(XMLString::transcode(Value.c_str()));
}
Any help.
Thanks,
em
I am using xerces dom C++, I want to change an element value, here is
the code I am using but the element in the file is not getting updated.
...
...
...
xercesc_2_4:
xercesc:
xercesc:
list = xmlDoc->getElementsByTagName( XMLString::transcode(Key.c_str())
);
node = list->item(0);
if( xercesc:
{
node->setNodeValue(XMLString::transcode(Value.c_str()));
}
Any help.
Thanks,
em