NodeKt

public final class NodeKt
public final class NodeKt

Properties

Link copied to clipboard
private final static Node nextSibling
private final static Node nextSibling

Returns the next node in the document tree, if any.

Link copied to clipboard
private final static Node parent
private final static Node parent

Returns the parent of this node, if any.

Link copied to clipboard
private final static Node previousSibling
private final static Node previousSibling

Returns the previous node in the document tree, if any.

Link copied to clipboard
private final static XPathExpression xPath
private final static XPathExpression xPath

Returns XPathExpression that represents path to this Node, or an empty expression if it is not available.

Functions

Link copied to clipboard
public final static XPathResult evaluate(Node $self, XPathExpression expression)
public final static XPathResult evaluate(Node $self, XPathExpression expression)

Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.

public final static XPathResult evaluate(Node $self, XPathExpression expression, XPathResultType type)
public final static XPathResult evaluate(Node $self, XPathExpression expression, XPathResultType type)

Evaluates the given expression for the node and returns XPathResult of the given type.

Link copied to clipboard
public final Node getNextSibling()
public final Node getNextSibling()
Link copied to clipboard
public final Node getParent()
public final Node getParent()
Link copied to clipboard
public final Node getPreviousSibling()
public final Node getPreviousSibling()
Link copied to clipboard
public final XPathExpression getXPath()
public final XPathExpression getXPath()