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::DO MDocument* xmlDoc = parser->getDocument( );
xercesc::DOMNod eList* list;
xercesc::DOMNod e* node;
list = xmlDoc->getElementsByT agName( XMLString::tran scode(Key.c_str ())
);
node = list->item(0);
if( xercesc::DOMNod e::ELEMENT_NODE == node->getNodeType( ) )
{
node->setNodeValue(X MLString::trans code(Value.c_st r()));
}
Any help.
Thanks,
em