Uses of Class
org.jsoup.nodes.Node
-
Packages that use Node Package Description org.jsoup.helper org.jsoup.nodes HTML document structure nodes.org.jsoup.parser Contains the HTML parser, tag specifications, and HTML tokeniser.org.jsoup.select Packages to support the CSS-style element selector. -
-
Uses of Node in org.jsoup.helper
Methods in org.jsoup.helper with parameters of type Node Modifier and Type Method Description voidW3CDom.W3CBuilder. head(Node source, int depth)voidW3CDom.W3CBuilder. tail(Node source, int depth) -
Uses of Node in org.jsoup.nodes
Subclasses of Node in org.jsoup.nodes Modifier and Type Class Description classCommentA comment node.classDataNodeA data node, for contents of style, script tags etc, where contents should not show in text().classDocumentA HTML Document.classDocumentTypeA<!DOCTYPE>node.classElementA HTML element consists of a tag name, attributes, and child nodes (including text nodes and other elements).classFormElementA HTML Form Element provides ready access to the form fields/controls that are associated with it.classTextNodeA text node.classXmlDeclarationAn XML Declaration.Methods in org.jsoup.nodes that return Node Modifier and Type Method Description NodeNode. after(java.lang.String html)Insert the specified HTML into the DOM after this node (i.e.NodeNode. after(Node node)Insert the specified node into the DOM after this node (i.e.NodeNode. attr(java.lang.String attributeKey, java.lang.String attributeValue)Set an attribute (key=value).NodeTextNode. attr(java.lang.String attributeKey, java.lang.String attributeValue)NodeNode. before(java.lang.String html)Insert the specified HTML into the DOM before this node (i.e.NodeNode. before(Node node)Insert the specified node into the DOM before this node (i.e.NodeNode. childNode(int index)Get a child node by its 0-based index.protected Node[]Node. childNodesAsArray()NodeNode. clone()Create a stand-alone, deep copy of this node, and all of its children.protected NodeNode. doClone(Node parent)NodeNode. nextSibling()Get this node's next sibling.NodeNode. parent()Gets this node's parent node.NodeNode. parentNode()Gets this node's parent node.NodeNode. previousSibling()Get this node's previous sibling.NodeNode. removeAttr(java.lang.String attributeKey)Remove an attribute from this element.NodeTextNode. removeAttr(java.lang.String attributeKey)NodeNode. root()Get this node's root node; that is, its topmost ancestor.NodeNode. traverse(NodeVisitor nodeVisitor)Perform a depth-first traversal through this node and its descendants.NodeNode. unwrap()Removes this node from the DOM, and moves its children up into the node's parent.NodeNode. wrap(java.lang.String html)Wrap the supplied HTML around this node.Methods in org.jsoup.nodes that return types with arguments of type Node Modifier and Type Method Description java.util.List<Node>Node. childNodes()Get this node's children.java.util.List<Node>Node. childNodesCopy()Returns a deep copy of this node's children.java.util.List<Node>Node. siblingNodes()Retrieves this node's sibling nodes.Methods in org.jsoup.nodes with parameters of type Node Modifier and Type Method Description protected voidNode. addChildren(int index, Node... children)protected voidNode. addChildren(Node... children)ElementElement. after(Node node)Insert the specified node into the DOM after this node (as a following sibling).NodeNode. after(Node node)Insert the specified node into the DOM after this node (i.e.ElementElement. appendChild(Node child)Add a node child node to this element.ElementElement. before(Node node)Insert the specified node into the DOM before this node (as a preceding sibling).NodeNode. before(Node node)Insert the specified node into the DOM before this node (i.e.protected NodeNode. doClone(Node parent)ElementElement. prependChild(Node child)Add a node to the start of this element's children.protected voidNode. removeChild(Node out)protected voidNode. reparentChild(Node child)protected voidNode. replaceChild(Node out, Node in)voidNode. replaceWith(Node in)Replace this node in the DOM with the supplied node.protected voidNode. setParentNode(Node parentNode)Method parameters in org.jsoup.nodes with type arguments of type Node Modifier and Type Method Description ElementElement. insertChildren(int index, java.util.Collection<? extends Node> children)Inserts the given child nodes into this element at the specified index. -
Uses of Node in org.jsoup.parser
Methods in org.jsoup.parser that return types with arguments of type Node Modifier and Type Method Description static java.util.List<Node>Parser. parseFragment(java.lang.String fragmentHtml, Element context, java.lang.String baseUri)Parse a fragment of HTML into a list of nodes.static java.util.List<Node>Parser. parseFragment(java.lang.String fragmentHtml, Element context, java.lang.String baseUri, ParseErrorList errorList)Parse a fragment of HTML into a list of nodes.static java.util.List<Node>Parser. parseXmlFragment(java.lang.String fragmentXml, java.lang.String baseUri)Parse a fragment of XML into a list of nodes. -
Uses of Node in org.jsoup.select
Methods in org.jsoup.select with parameters of type Node Modifier and Type Method Description voidNodeVisitor. head(Node node, int depth)Callback for when a node is first visited.voidNodeVisitor. tail(Node node, int depth)Callback for when a node is last visited, after all of its descendants have been visited.voidNodeTraversor. traverse(Node root)Start a depth-first traverse of the root and all of its descendants.
-