| Functions |
addCDATASection(string) - Add an xml cdata section as a child to the current element. |
addChild(string,string) - Add a child element to the tree as a child to the current element. |
addComment(string) - Add an xml comment as a child to the current element. |
addNextSibling(string,string) - Add an element as the next sibling of the to the current element. |
addPI(string,string) - Add an xml proccessing intructionas a child to the current element. |
addPreviousSibling(string,string) - Add an element as the previous sibling of the to the current element. |
addSibling(string,string) - Add a sibling element to the current element. |
getAttributeByName(string) - Fetch the value of the attribute with name attr. |
getAttributes() - Get all the elements attributes as an array |
getChildren() - Get all the elements children. |
getElementData() - Retrieve the data of an element node. |
getElementName() - Retrieve the name of an element node. |
getElementsByTagName(string) - Retrieve all elements matching name, name could be an xpath expression. |
getFirstChild() - Get the first child of an element node. |
getLastChild() - Get the last child of an element node. |
getNamespace() - Get the namespace of an element node. |
getNextSibling() - Get the next sibling of an element node. |
getParent() - Get the parent element of an element node. |
getPreviousSibling() - Get the previous sibling of an element node. |
hasAttribute(string) - Check if the current element an attributes with name. |
hasAttributes() - Check if the current element has any attributes. |
hasChildren() - Check if an element has children. |
mergeAsChild(object) - Merge one xml tree into another as a child tree. |
mergeAsNextSibling(object) - Merge one xml tree into another as a child tree. As the next sibling. |
mergeAsPreviousSibling(object) - Merge one xml tree into another tree as the next sibling. |
mergeAsSibling(object) - Merge one xml tree into another as a child tree. As a sibling. |
removeAttribute(string) - Remove an attribute |
removeChildren() - Remove all children element to the current node. |
removeChildWithName(string) - Remove all children elements with a specific name. |
removeElementsByTagName(string) - Remove all elements with identified by an xpath string. |
removeSelf() - Remove the current element. |
setAttribute(string,string) - Set the value of an attribute on the current element. If the attribute does not exist it will be created. |
setElementData(string) - Change the content of the current element. |
setElementName(string) - Change the name of the current element. |
toString() - return the content of an element and its children as a string. |