Motti Shneor wrote:
Hello everyone.
Facing the immense variety in the API in the headers, and the sparse
documentation and sample code, here is a novice question. Please bear
with me...
I need to replace the value of a simple element node in a DOM document.
"Simple" means it has attributes, but no sub-elements. I do not want to
change the attributes of the element. Just its "text" value.
I have seen a DOMElement->createTextNode();
But I could NOT find anything like DomElement->getTextNode() so I could
change its value using setNodeValue();
If a DOMText* node contains the "value" of a DOMElement* node, what is
the value of the DOMElement in the first place? What does it mean to
"DOMElement *x->setNodeValue(), and how is it different than finding the
DOMText* node within it, and setting its value?
Thank you very much for any explanation...
These are generic questions about the DOM, so you should read a DOM tutorial:
http://www.w3schools.com/dom/default.asp
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]