Name: eaR10174 Date: 06/20/2001
The description ( javadoc comments ) of the org.w3c.dom.Node.setPrefix() is
empty ( build jaxp-1.1.1-b24-19_jun_2001, build jdk1.4.0beta-b68 ) but it seems to
be appended to the description of the org.w3c.dom.Node.getPrefix() -
public String getPrefix()
...
Note that setting this attribute, when permitted, changes the nodeName
attribute, which holds the qualified name, as well as the tagName and name
attributes of the Element and Attr interfaces, when applicable.
Note also that changing the prefix of an attribute that is known to have a
default value, does not make a new attribute with the default value and the
original prefix appear, since the namespaceURI and localName do not change.
...
Throws:
DOMException - INVALID_CHARACTER_ERR: Raised if the specified prefix
contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NAMESPACE_ERR: Raised if the specified prefix is malformed, if the
namespaceURI of this node is null, if the specified prefix is "xml" and the
namespaceURI of this node is different from
"http://www.w3.org/XML/1998/namespace", if this node is an attribute and
the specified prefix is "xmlns" and the namespaceURI of this node is
different from " http://www.w3.org/2000/xmlns/", or if this node is an
attribute and the qualifiedName of this node is "xmlns".
======================================================================