Attr (Node)
This class contains methods for accessing the name and value of a single document node attribute. |
|
getName |
Return name of attribute |
|
getValue |
Return "value" (definition) of attribute |
|
getSpecified |
Return attribute's "specified" flag value |
|
setValue |
Set an attribute's value |
CDATASection (Text)
This class implements the CDATA node type, a subclass of Text. There are no methods. |
CharacterData (Node)
This class contains methods for accessing and modifying the data associated with text nodes. |
|
appendData |
Append a string to this node's data |
|
deleteData |
Remove a substring from this node's data |
|
getData |
Get data (value) of a text node |
|
getLength |
Return length of a text node's data |
|
insertData |
nsert a string into this node's data |
|
replaceData |
Replace a substring in this node's data |
|
substringData |
Fetch a substring of this node's data |
Comment (CharacterData)
This class implements the COMMENT node type, a subclass of CharacterData. There are no methods. |
Document (Node)
This class contains methods for creating and retrieving nodes. |
|
createAttribute |
Create an ATTRIBUTE node |
|
createCDATASection |
Create a CDATA node |
|
createComment |
Create a COMMENT node |
|
createDocumentFragment |
Create a DOCUMENT_FRAGMENT node |
|
createElement |
Create an ELEMENT node |
|
createEntityReference |
Create an ENTITY_REFERENCE node |
|
createProcessingInstruction |
Create a PROCESSING_INSTRUCTION node |
|
createTextNode |
Create a TEXT node |
|
getElementsByTagName |
Select nodes based on tag name |
|
getImplementation |
Return DTD for document |
DocumentFragment (Node)
This class implements the DOCUMENT_FRAGMENT node type, a subclass of Node. |
DocumentType (Node)
This class contains methods for accessing information about the Document Type Definition (DTD) of a document. |
|
getName |
R eturn name of DTD |
|
getEntities |
Return NamedNodeMap of DTD's (general) entities |
|
getNotations |
Return NamedNodeMap of DTD's notations |
DOMImplementation
This class contains methods relating to the specific DOM implementation supported by the parser. |
|
hasFeature |
Detect if the named feature is supported |
|
Element (Node |
This class contains methods pertaining to element nodes. |
|
getTagName |
Return the node's tag name |
|
getAttribute |
Select an attribute given its name |
|
setAttribute |
Create a new attribute given its name and value |
|
removeAttribute |
Remove an attribute given its name |
|
getAttributeNode |
Remove an attribute given its name |
|
setAttributeNode |
Add a new attribute node |
|
removeAttributeNode |
Remove an attribute node |
|
getElementsByTagName |
Return a list of element nodes with the given tag name |
|
normalize |
"Normalize" an element (merge adjacent text nodes) |
Entity (Node)
This class implements the ENTITY node type, a subclass of Node. |
|
getNotation |
NameReturn entity's NDATA (notation name) |
|
getPublicId |
Return entity's public ID |
|
getSystemId |
Return entity's system ID |
EntityReference (Node)
This class implements the ENTITY_REFERENCE node type, a subclass of Node. |
NamedNodeMap
This class contains methods for accessing the number of nodes in a node map and fetching individual nodes. |
|
item |
Return nth node in map |
|
getLength |
Return number of nodes in map |
|
getNamedItem |
Select a node by name |
|
setNamedItem |
Set a node into the map |
|
getLength |
Remove the named node from map |
Node
This class contains methods for details about a document node |
|
appendChild |
Append a new child to the end of the current node's list of children |
|
cloneNode |
Clone an existing node and optionally all its children |
|
getAttributes |
Return structure contains all defined node attributes |
|
getChildNode |
Return specific indexed child of given node |
|
getChildNodes |
Return structure contains all child nodes of given node |
|
getFirstChild |
Return first child of given node |
|
getLastChild |
Return last child of given node |
|
getLocal |
Returns the local name of the node |
|
getNamespace |
Return a node's namespace |
|
getNextSibling |
Return a node's next sibling |
|
getName |
Return name of node |
|
getType |
Return numeric type-code of node |
|
getValue |
Return "value" (data) of node |
|
getOwnerDocument |
Return document node which contains a node |
|
getParentNode |
Return parent node of given node |
|
getPrefix |
Returns the namespace prefix for the node |
|
getPreviousSibling |
Returns the previous sibling of the current node |
|
getQualifiedName |
Return namespace qualified node of given node |
|
hasAttributes |
Determine if node has any defined attributes |
|
hasChildNodes |
Determine if node has children |
|
insertBefore |
Insert new child node into a node's list of children |
|
numChildNodes |
Return count of number of child nodes of given node |
|
removeChild |
Remove a node from the current node's list of children |
|
replaceChild |
Replace a child node with another |
|
setValue |
Sets a node's value (data) |
NodeList
This class contains methods for extracting nodes from a NodeList |
|
item |
Return nth node in list |
|
getLength |
Return number of nodes in list |
Notation (Node)
This class implements the NOTATION node type, a subclass of Node. |
|
getData |
Return notation's data |
|
getTarget |
Return notation's target |
|
setData |
Set notation's data |
ProcessingInstruction (Node)
This class implements the PROCESSING_INSTRUCTION node type, a subclass of Node. |
|
getData |
Return the PI's data |
|
getTarget |
Return the PI's target |
|
setData |
Set the PI's data |
Text (CharacterData)
This class contains methods for accessing and modifying the data associated with text nodes (subclasses CharacterData). |
|
splitText |
Get data (value) of a text node |