Calling setNodeValue on an Element object should do nothing, per
http://www.w3.org/tr/DOM-Level-2-Core/core.html#ID-F68D080 , so the
observed behavior of throwing an exception is wrong, but it isn't supposed
to magically create a child text element for you either.

If you want to add or change text content to the element, you have to
manipulate the child elements, either creating a new text node and adding it
to the element or using an existing child text node, changing its value and
removing any other children.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to