I tried it out using xercesJ-2.2.0. To be fair the doc for the class does
state its is experimental....

public org.w3c.dom.Node renameNode(org.w3c.dom.Node�n,
                                   java.lang.String�namespaceURI,
                                   java.lang.String�name)
                            throws org.w3c.dom.DOMException
      DOM Level 3 WD - Experimental. Renaming node


Sire Chembiparambil



"Swanson, Brion" <[EMAIL PROTECTED]> on 10/01/2002 10:46:54 AM

Please respond to [EMAIL PROTECTED]

To:    "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject:    RE: Problem with the method renameNode again



Then the question becomes: does the version of Xerces that this gentleman
is
using conform to the DOM 3 proposal?

-----Original Message-----
From: Joseph Kesselman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 10:41 AM
To: [EMAIL PROTECTED]
Subject: RE: Problem with the method renameNode again


On Tuesday, 10/01/2002 at 09:19 EST, "Swanson, Brion"
<[EMAIL PROTECTED]> wrote:
> It has been my understanding that one cannot change the name of the
> root/document node since a node's name is critically important to the
> structure of a node/DOM tree.

That's been true in past versions of the DOM. (Justification: Some DOMs
subclass may nodes differently based on their type; consider the HTML DOM
as an example.)

DOM Level 3 is proposing allowing (not requiring) some (not all) DOMs to
relax this, via the renameNode operation. In DOMs which don't allow
renaming, renameNode _replaces_ the node with a new on having the new
name. See the current Working Draft for details:
http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-renameNode

______________________________________
Joe Kesselman  / IBM Research

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

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






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

Reply via email to