>Not in DOM Level 2. Edit the tree to remove the old element, insert a new
>one, and copy the children and attributes from old to new.

(Actually, _move_ the children and attrs to the new element rather than
having to copy them. Sorry; wrote the above in a hurry.)

BTW, this is also covered in the DOM FAQ:
http://www.w3.org/DOM/faq.html#rename_node

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


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

Reply via email to