Hi Sampath, Sampath K Settipalli wrote: > Once I create an Element with a name is there a way to modify the > name of the Element ? (something similar to TXElement.setTagName(String)
As Joe mentions, DOM Level 2 does not have this functionality. However, DOM Level 3 does define Document.renameNode(..) method and it will work for all kinds of DOM [1]. The latest release of Xerces (2.0.2) includes implementation of renameNode(). The only part missing is the firing of the related mutation events. To access this functionality you either need to build Xerces with DOM Level 3 support [2] or cast your document to CoreDocumentImpl. [1] http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020409/core.html#Document3-renameNode [2] http://xml.apache.org/xerces2-j/faq-write.html#faq-1 Hope it helps, -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
