Function Summary |
java.lang.String | attr( org.dom4j.Node, java.lang.Object) | Returns the value of the specified attribute for the given Node , if that Node is an Element . If it is a non-Element node type or there is no value for that attribute in this element, then this will return null . |
java.util.Map | attributes( org.dom4j.Node) | Returns a Map of all attributes for the given Node . If that Node is not an Element , this will return null. |
org.dom4j.Node | children( org.dom4j.Node) | Returns a new Node instance that wraps all the child Elements of the given Node . |
org.dom4j.Node | find( org.dom4j.Node, java.lang.String) | Performs an XPath selection on the given Node and returns a new Node instance that wraps those results. Other functions available: org.dom4j.Node find(org.dom4j.Node, java.lang.Object) Examples: ${xml:find(node, xpath)} ${xml:find(node, object)} |
org.dom4j.Node | get( org.dom4j.Node, java.lang.Number) | Returns a Node that wraps the specified Node from the given Node . Other functions available: java.lang.Object get(org.dom4j.Node, java.lang.Object) Examples: ${xml:get(node, number)} ${xml:get(node, object)} |
org.dom4j.Node | getFirst( org.dom4j.Node) | Returns a Node that wraps only the first Node from the given Node . |
org.dom4j.Node | getLast( org.dom4j.Node) | Returns a Node that wraps only the last Node from the given Node . |
java.lang.Object | getName( org.dom4j.Node) | Asks get(Object) for a "name" result. If none, this will return the result of getNodeName() . |
java.lang.String | getNodeName( org.dom4j.Node) | Returns the name of the root node. If the given Node has more than one Node , it will only return the name of the first node in the list. |
org.dom4j.Node | getParent( org.dom4j.Node) | Returns a new Node instance that wraps the parent Element of the given Node . |
java.lang.String | getPath( org.dom4j.Node) | Returns the XPath that identifies the given Node . |
java.lang.String | getText( org.dom4j.Node) | Returns the concatenated text content of the given Node . |
org.dom4j.Node | parents( org.dom4j.Node) | Returns a new Node instance that wraps the parent Element of the given Node . |
org.dom4j.Node | parse( java.lang.Object) | This accepts XML in form. If the XML is valid, it will return a new Node instance with the resulting XML document as the root Node . If parsing the content fails, this will return null . |
org.dom4j.Node | read( java.lang.Object) | If valid, it will return a new Node instance with that document as the root Node . If reading the URL or parsing its content fails, this will return null . |
java.util.List | selectNodes( org.dom4j.Node, java.lang.String) | Evaluates an XPath expression and returns the result as a List of Node instances or String instances depending on the XPath expression. |
org.dom4j.Node | selectSingleNode( org.dom4j.Node, java.lang.String) | Evaluates an XPath expression and returns the result as a single Node instance. |