public abstract class XmlDocument
extends java.lang.Object
implements org.w3c.dom.Document, java.io.Serializable
VoiceXML is designed for creating audio dialogs that feature synthesized speech, digitized audio, recognition of spoken and DTMF key input, recording of spoken input, telephony and mixed initiative conversations. Its major goal is to bring the advantages of web-based development and content delivery to interactive voice response applications.
Objects of this class can create such VoiceXML documents or parse them.
The encoding can be controlled via the
jvoicexml.xml.encoding environment property. The default
value is UTF-8.
Entities are not resolved by default. The bahavior can be controlled via
the system property org.jvoicexml.resolveEntities.
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
XmlDocument()
Creates an empty XML document.
|
XmlDocument(org.w3c.dom.Document doc)
Construct a new XML document with the given document.
|
XmlDocument(org.xml.sax.InputSource source)
Constructs a new XML document from the given input source.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source)
Attempts to adopt a node from another document to this document.
|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Adds the node
newChild to the end of the list of children
of this node. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes.
|
short |
compareDocumentPosition(org.w3c.dom.Node other)
Compares the reference node, i.e.
|
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
Creates an
Attr of the given name. |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates an attribute of the given qualified name and namespace URI.
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
Creates a
CDATASection node whose value is the specified
string. |
org.w3c.dom.Comment |
createComment(java.lang.String data)
Creates a
Comment node given the specified string. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Creates an empty
DocumentFragment object. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
Creates an element of the type specified.
|
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates an element of the given qualified name and namespace URI.
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
Creates an
EntityReference object. |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a
ProcessingInstruction node given the specified
name and data strings. |
protected abstract org.w3c.dom.Node |
createRootNode()
Create the root node of the document.
|
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Creates a
Text node given the specified string. |
org.w3c.dom.NamedNodeMap |
getAttributes()
A
NamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise. |
java.lang.String |
getBaseURI()
The absolute base URI of this node or
null if the
implementation wasn't able to obtain an absolute URI. |
org.w3c.dom.NodeList |
getChildNodes()
A
NodeList that contains all children of this node. |
protected abstract java.lang.String |
getDefaultNamespaceURI()
Retrieves the default namespace.
|
org.w3c.dom.DocumentType |
getDoctype()
Retrieves the Document Type Declaration associated with this document.
|
org.w3c.dom.Document |
getDocument()
Retrieves the encapsulated document.
|
org.w3c.dom.Element |
getDocumentElement()
This is a convenience attribute that allows direct access to the child
node that is the root element of the document.
|
java.lang.String |
getDocumentURI()
The location of the document or
null if undefined or if
the Document was created using
DOMImplementation.createDocument. |
org.w3c.dom.DOMConfiguration |
getDomConfig()
The configuration used when
Document.normalizeDocument()
is invoked. |
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
Returns the
Element whose ID is given by
elementId. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagname)
Returns a
NodeList of all the Elements with
a given tag name in the order in which they are encountered in a preorder
traversal of the Document tree. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
Returns a
NodeList of all the Elements with
a given local name and namespace URI in the order in which they are
encountered in a preorder traversal of the Document tree. |
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version)
This method returns a specialized object which implements the specialized
APIs of the specified feature and version, as specified in .
|
org.w3c.dom.Node |
getFirstChild()
The first child of this node.
|
org.w3c.dom.DOMImplementation |
getImplementation()
The
DOMImplementation object that handles this document. |
java.lang.String |
getInputEncoding()
An attribute specifying the encoding used for this document at the time
of the parsing.
|
org.w3c.dom.Node |
getLastChild()
The last child of this node.
|
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node.
|
java.lang.String |
getNamespaceURI()
The namespace URI of this node, or
null if it is
unspecified. |
org.w3c.dom.Node |
getNextSibling()
The node immediately following this node.
|
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above.
|
short |
getNodeType()
A code representing the type of the underlying object, as defined above.
|
java.lang.String |
getNodeValue()
The value of this node, depending on its type; see the table above.
|
org.w3c.dom.Document |
getOwnerDocument()
The
Document object associated with this node. |
org.w3c.dom.Node |
getParentNode()
The parent of this node.
|
java.lang.String |
getPrefix()
The namespace prefix of this node, or
null if it is
unspecified. |
org.w3c.dom.Node |
getPreviousSibling()
The node immediately preceding this node.
|
boolean |
getStrictErrorChecking()
An attribute specifying whether error checking is enforced or not.
|
java.lang.String |
getTextContent()
This attribute returns the text content of this node and its descendants.
|
java.lang.Object |
getUserData(java.lang.String key)
Retrieves the object associated to a key on a this node.
|
java.lang.String |
getXmlEncoding()
An attribute specifying, as part of the XML
declaration, the encoding of this document.
|
protected org.w3c.dom.Node |
getXmlNode(org.w3c.dom.Node node)
Get the XmlNode object corresponding to the node.
|
protected abstract XmlNodeFactory<?> |
getXmlNodefactory()
Retrieves the node factory for child node lists.
|
protected abstract org.w3c.dom.NodeList |
getXmlNodeList(org.w3c.dom.NodeList nodeList)
Get the XmlNodeList object corresponding to the nodelist.
|
boolean |
getXmlStandalone()
An attribute specifying, as part of the XML
declaration, whether this document is standalone.
|
java.lang.String |
getXmlVersion()
An attribute specifying, as part of the XML
declaration, the version number of this document.
|
boolean |
hasAttributes()
Returns whether this node (if it is an element) has any attributes.
|
boolean |
hasChildNodes()
Returns whether this node has any children.
|
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
Imports a node from another document to this document.
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts the node
newChild before the existing child node
refChild. |
boolean |
isDefaultNamespace(java.lang.String namespaceURI)
This method checks if the specified
namespaceURI is the
default namespace or not. |
boolean |
isEqualNode(org.w3c.dom.Node arg)
Tests whether two nodes are equal.
|
boolean |
isSameNode(org.w3c.dom.Node other)
Returns whether this node is the same node as the given one.
|
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
Tests whether the DOM implementation implements a specific feature and
that feature is supported by this node.
|
java.lang.String |
lookupNamespaceURI(java.lang.String prefix)
Look up the namespace URI associated to the given prefix, starting from
this node.
|
java.lang.String |
lookupPrefix(java.lang.String namespaceURI)
Look up the prefix associated to the given namespace URI, starting from
this node.
|
void |
normalize()
Puts all
Text nodes in the full depth of the sub-tree
underneath this Node, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments, processing
instructions, CDATA sections, and entity references) separates
Text nodes, i.e., there are neither adjacent
Text nodes nor empty Text nodes. |
void |
normalizeDocument()
This method acts as if the document was going through a save and load
cycle, putting the document in a "normal" form.
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Removes the child node indicated by
oldChild from the list
of children, and returns it. |
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
Rename an existing node of type
ELEMENT_NODE or
ATTRIBUTE_NODE. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Replaces the child node
oldChild with
newChild in the list of children, and returns the
oldChild node. |
void |
setDocumentURI(java.lang.String documentURI)
The location of the document or
null if undefined or if
the Document was created using
DOMImplementation.createDocument. |
void |
setNodeValue(java.lang.String nodeValue)
The value of this node, depending on its type; see the table above.
|
void |
setPrefix(java.lang.String prefix)
The namespace prefix of this node, or
null if it is
unspecified. |
void |
setStrictErrorChecking(boolean strictErrorChecking)
An attribute specifying whether error checking is enforced or not.
|
void |
setTextContent(java.lang.String textContent)
This attribute returns the text content of this node and its descendants.
|
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object data,
org.w3c.dom.UserDataHandler handler)
Associate an object to a key on this node.
|
void |
setXmlStandalone(boolean xmlStandalone)
An attribute specifying, as part of the XML
declaration, whether this document is standalone.
|
void |
setXmlVersion(java.lang.String xmlVersion)
An attribute specifying, as part of the XML
declaration, the version number of this document.
|
java.lang.String |
toString()
Creates a representation as an XML string.
|
java.lang.String |
toXml()
Returns the contents of this object as an XML formatted string.
|
public XmlDocument()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - Error creating the document builder.public XmlDocument(org.xml.sax.InputSource source)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
source - Input source for a single XML document.javax.xml.parsers.ParserConfigurationException - Error creating the document builder.org.xml.sax.SAXException - Error parsing the input source.java.io.IOException - Error reading the input source.public XmlDocument(org.w3c.dom.Document doc)
doc - Encapsulated document.public final org.w3c.dom.Document getDocument()
protected abstract XmlNodeFactory<?> getXmlNodefactory()
protected abstract org.w3c.dom.Node createRootNode()
public final org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
newChild to the end of the list of children
of this node.appendChild in interface org.w3c.dom.NodenewChild - The node to add.If it is a DocumentFragment object,
the entire contents of the document fragment are moved into the
child list of this nodepublic final org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodedeep - If true, recursively clone the subtree under the
specified node; if false, clone only the node
itself (and its attributes, if it is an Element).public final org.w3c.dom.Attr createAttribute(java.lang.String name)
Attr of the given name.createAttribute in interface org.w3c.dom.Documentname - The name of the attribute.Attr object with the nodeName
attribute set to name, and localName,
prefix, and namespaceURI set to
null. The value of the attribute is the empty
string.public final org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
createAttributeNS in interface org.w3c.dom.DocumentnamespaceURI - The namespace URI of the attribute to create.qualifiedName - The qualified name of the attribute to instantiate.Attr object with the following attributes:
| Attribute | Value |
|---|---|
Node.nodeName |
qualifiedName |
Node.namespaceURI |
namespaceURI |
Node.prefix |
prefix, extracted from
qualifiedName, or null if there is
no prefix |
Node.localName |
local name, extracted from
qualifiedName |
Attr.name |
qualifiedName |
Node.nodeValue |
the empty string |
public final org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
CDATASection node whose value is the specified
string.createCDATASection in interface org.w3c.dom.Documentdata - The data for the CDATASection contents.CDATASection object.public final org.w3c.dom.Comment createComment(java.lang.String data)
Comment node given the specified string.createComment in interface org.w3c.dom.Documentdata - The data for the node.Comment object.public final org.w3c.dom.DocumentFragment createDocumentFragment()
DocumentFragment object.createDocumentFragment in interface org.w3c.dom.DocumentDocumentFragment.public final org.w3c.dom.Element createElement(java.lang.String tagName)
createElement in interface org.w3c.dom.DocumenttagName - The name of the element type to instantiate. For XML, this is
case-sensitive. For HTML, the tagName parameter may
be provided in any case, but it must be mapped to the canonical
uppercase form by the DOM implementation.Element object with the
nodeName attribute set to tagName,
and localName, prefix, and
namespaceURI set to null.public final org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
createElementNS in interface org.w3c.dom.DocumentnamespaceURI - The namespace URI of the element to create.qualifiedName - The qualified name of the element type to instantiate.Element object with the following
attributes: | Attribute | Value |
|---|---|
Node.nodeName |
qualifiedName |
Node.namespaceURI |
namespaceURI |
Node.prefix |
prefix, extracted from
qualifiedName, or null if there is
no prefix |
Node.localName |
local name, extracted from
qualifiedName |
Element.tagName |
qualifiedName |
public final org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
EntityReference object.createEntityReference in interface org.w3c.dom.Documentname - The name of the entity to reference.EntityReference object.public final org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
ProcessingInstruction node given the specified
name and data strings.createProcessingInstruction in interface org.w3c.dom.Documenttarget - The target part of the processing instruction.data - The data for the node.ProcessingInstruction object.public final org.w3c.dom.Text createTextNode(java.lang.String data)
Text node given the specified string.createTextNode in interface org.w3c.dom.Documentdata - The data for the node.Text object.public final org.w3c.dom.NamedNodeMap getAttributes()
NamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise.getAttributes in interface org.w3c.dom.Nodepublic final org.w3c.dom.NodeList getChildNodes()
NodeList that contains all children of this node.getChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.DocumentType getDoctype()
null if there is nonegetDoctype in interface org.w3c.dom.DocumentDocumentTypepublic final org.w3c.dom.Element getDocumentElement()
getDocumentElement in interface org.w3c.dom.Documentpublic final org.w3c.dom.Element getElementById(java.lang.String elementId)
Element whose ID is given by
elementId.getElementById in interface org.w3c.dom.DocumentelementId - The unique id value for an element.public final org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
NodeList of all the Elements with
a given tag name in the order in which they are encountered in a preorder
traversal of the Document tree.getElementsByTagName in interface org.w3c.dom.Documenttagname - The name of the tag to match on. The special value "*" matches all
tags.NodeList object containing all the matched
Elements.public final org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
NodeList of all the Elements with
a given local name and namespace URI in the order in which they are
encountered in a preorder traversal of the Document tree.getElementsByTagNameNS in interface org.w3c.dom.DocumentnamespaceURI - The namespace URI of the elements to match on. The special value
"*" matches all namespaces.localName - The local name of the elements to match on. The special value "*"
matches all local names.NodeList object containing all the matched
Elements.protected final org.w3c.dom.Node getXmlNode(org.w3c.dom.Node node)
node - -
Node to convert to an XmlNodeprotected abstract org.w3c.dom.NodeList getXmlNodeList(org.w3c.dom.NodeList nodeList)
nodeList - -
Node to convert to an XmlNodeListpublic final org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.Nodepublic final org.w3c.dom.DOMImplementation getImplementation()
DOMImplementation object that handles this document.getImplementation in interface org.w3c.dom.Documentpublic final org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.Nodepublic final java.lang.String getLocalName()
getLocalName in interface org.w3c.dom.Nodepublic final java.lang.String getNamespaceURI()
null if it is
unspecified.getNamespaceURI in interface org.w3c.dom.Nodeprotected abstract java.lang.String getDefaultNamespaceURI()
null.public final org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.Nodepublic final java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic final short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic final java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.Nodepublic final org.w3c.dom.Document getOwnerDocument()
Document object associated with this node.getOwnerDocument in interface org.w3c.dom.Nodepublic final org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.Nodepublic final java.lang.String getPrefix()
null if it is
unspecified.getPrefix in interface org.w3c.dom.Nodepublic final org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.Nodepublic final boolean hasAttributes()
hasAttributes in interface org.w3c.dom.Nodetrue if this node has any attributes,
false otherwise.public final boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Nodetrue if this node has any children,
false otherwise.public final org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
importNode in interface org.w3c.dom.DocumentimportedNode - The node to import.deep - If true, recursively import the subtree under the
specified node; if false, import only the node
itself, as explained above. This has no effect on
Attr , EntityReference, and
Notation nodes.Document.public final java.lang.String getInputEncoding()
getInputEncoding in interface org.w3c.dom.Documentpublic final java.lang.String getXmlEncoding()
getXmlEncoding in interface org.w3c.dom.Documentpublic final boolean getXmlStandalone()
getXmlStandalone in interface org.w3c.dom.Documentpublic final void setXmlStandalone(boolean xmlStandalone)
setXmlStandalone in interface org.w3c.dom.DocumentxmlStandalone - booleanpublic final java.lang.String getXmlVersion()
getXmlVersion in interface org.w3c.dom.Documentpublic final void setXmlVersion(java.lang.String xmlVersion)
setXmlVersion in interface org.w3c.dom.DocumentxmlVersion - Stringpublic final boolean getStrictErrorChecking()
getStrictErrorChecking in interface org.w3c.dom.Documentpublic final void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface org.w3c.dom.DocumentstrictErrorChecking - booleanpublic final java.lang.String getDocumentURI()
null if undefined or if
the Document was created using
DOMImplementation.createDocument.getDocumentURI in interface org.w3c.dom.Documentpublic final void setDocumentURI(java.lang.String documentURI)
null if undefined or if
the Document was created using
DOMImplementation.createDocument.setDocumentURI in interface org.w3c.dom.DocumentdocumentURI - Stringpublic final org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
adoptNode in interface org.w3c.dom.Documentsource - The node to move into this document.null if this operation fails,
such as when the source node comes from a different
implementation.public final org.w3c.dom.DOMConfiguration getDomConfig()
Document.normalizeDocument()
is invoked.getDomConfig in interface org.w3c.dom.Documentpublic final void normalizeDocument()
normalizeDocument in interface org.w3c.dom.Documentpublic final org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
ELEMENT_NODE or
ATTRIBUTE_NODE.renameNode in interface org.w3c.dom.Documentn - The node to rename.namespaceURI - The new namespace URI.qualifiedName - The new qualified name.public final org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
newChild before the existing child node
refChild.insertBefore in interface org.w3c.dom.NodenewChild - The node to insert.refChild - The reference node, i.e., the node before which the new node must
be inserted.public final boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.Nodefeature - The name of the feature to test. This is the same name which can
be passed to the method hasFeature on
DOMImplementation.version - This is the version number of the feature to test. In Level 2,
version 1, this is the string "2.0". If the version is not
specified, supporting any version of the feature will cause the
method to return true.true if the specified feature is supported
on this node, false otherwise.public final void normalize()
Text nodes in the full depth of the sub-tree
underneath this Node, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments, processing
instructions, CDATA sections, and entity references) separates
Text nodes, i.e., there are neither adjacent
Text nodes nor empty Text nodes.normalize in interface org.w3c.dom.Nodepublic final org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
oldChild from the list
of children, and returns it.removeChild in interface org.w3c.dom.NodeoldChild - The node being removed.public final org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
oldChild with
newChild in the list of children, and returns the
oldChild node.replaceChild in interface org.w3c.dom.NodenewChild - The new node to put in the child list.oldChild - The node being replaced in the list.public final void setNodeValue(java.lang.String nodeValue)
setNodeValue in interface org.w3c.dom.NodenodeValue - Stringpublic final void setPrefix(java.lang.String prefix)
null if it is
unspecified.setPrefix in interface org.w3c.dom.Nodeprefix - Stringpublic final java.lang.String getBaseURI()
null if the
implementation wasn't able to obtain an absolute URI.getBaseURI in interface org.w3c.dom.Nodepublic final short compareDocumentPosition(org.w3c.dom.Node other)
compareDocumentPosition in interface org.w3c.dom.Nodeother - The node to compare against the reference node.public final java.lang.String getTextContent()
getTextContent in interface org.w3c.dom.Nodepublic final void setTextContent(java.lang.String textContent)
setTextContent in interface org.w3c.dom.NodetextContent - Stringpublic final boolean isSameNode(org.w3c.dom.Node other)
isSameNode in interface org.w3c.dom.Nodeother - The node to test against.true if the nodes are the same,
false otherwise.public final java.lang.String lookupPrefix(java.lang.String namespaceURI)
lookupPrefix in interface org.w3c.dom.NodenamespaceURI - The namespace URI to look for.null if none is found. If more than one prefix are
associated to the namespace prefix, the returned namespace prefix
is implementation dependent.public final boolean isDefaultNamespace(java.lang.String namespaceURI)
namespaceURI is the
default namespace or not.isDefaultNamespace in interface org.w3c.dom.NodenamespaceURI - The namespace URI to look for.true if the specified
namespaceURI is the default namespace,
false otherwise.public final java.lang.String lookupNamespaceURI(java.lang.String prefix)
lookupNamespaceURI in interface org.w3c.dom.Nodeprefix - The prefix to look for. If this parameter is null,
the method will return the default namespace URI if any.null if
none is found.public final boolean isEqualNode(org.w3c.dom.Node arg)
isEqualNode in interface org.w3c.dom.Nodearg - The node to compare equality with.true if the nodes are equal,
false otherwise.public final java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
getFeature in interface org.w3c.dom.Nodefeature - The name of the feature requested. Note that any plus sign "+"
prepended to the name of the feature will be ignored since it is
not significant in the context of this method.version - This is the version number of the feature to test.null if
there is no object which implements interfaces associated with
that feature. If the DOMObject returned by this
method implements the Node interface, it must
delegate to the primary core Node and not return
results inconsistent with the primary core Node
such as attributes, childNodes, etc.public final java.lang.Object setUserData(java.lang.String key,
java.lang.Object data,
org.w3c.dom.UserDataHandler handler)
setUserData in interface org.w3c.dom.Nodekey - The key to associate the object to.data - The object to associate to the given key, or null
to remove any existing association to that key.handler - The handler to associate to that key, or null.DOMUserData previously associated to
the given key on this node, or null if there was
none.public final java.lang.Object getUserData(java.lang.String key)
getUserData in interface org.w3c.dom.Nodekey - The key the object is associated to.DOMUserData associated to the given
key on this node, or null if there was none.public final java.lang.String toXml()
throws java.io.IOException
java.io.IOException - Error writing to the writer.public final java.lang.String toString()
Object.toString() creation
is used.toString in class java.lang.Object