Uses of Class
org.jsoup.nodes.Node
Packages that use Node
Package
Description
Contains example programs and use of jsoup.
HTML document structure nodes.
Contains the HTML parser, tag specifications, and HTML tokeniser.
Contains the jsoup HTML cleaner, and whitelist definitions.
Packages to support the CSS-style element selector.
-
Uses of Node in org.jsoup.examples
Methods in org.jsoup.examples with parameters of type Node -
Uses of Node in org.jsoup.helper
Methods in org.jsoup.helper with parameters of type Node -
Uses of Node in org.jsoup.nodes
Subclasses of Node in org.jsoup.nodesModifier and TypeClassDescriptionclass
A Character Data node, to support CDATA sections.class
A comment node.class
A data node, for contents of style, script tags etc, where contents should not show in text().class
A HTML Document.class
A<!DOCTYPE>
node.class
A HTML element consists of a tag name, attributes, and child nodes (including text nodes and other elements).class
A HTML Form Element provides ready access to the form fields/controls that are associated with it.(package private) class
class
class
A text node.class
An XML Declaration.Fields in org.jsoup.nodes declared as NodeFields in org.jsoup.nodes with type parameters of type NodeMethods in org.jsoup.nodes that return NodeModifier and TypeMethodDescriptionInsert the specified HTML into the DOM after this node (i.e.Insert the specified node into the DOM after this node (i.e.Set an attribute (key=value).Insert the specified HTML into the DOM before this node (i.e.Insert the specified node into the DOM before this node (i.e.Node.childNode
(int index) Get a child node by its 0-based index.protected Node[]
Node.childNodesAsArray()
Node.clearAttributes()
Clear (remove) all of the attributes in this node.Node.clone()
Create a stand-alone, deep copy of this node, and all of its children.protected Node
LeafNode.empty()
abstract Node
Node.empty()
Delete all this node's children.Node.filter
(NodeFilter nodeFilter) Perform a depth-first filtering through this node and its descendants.Node.nextSibling()
Get this node's next sibling.Node.parent()
Gets this node's parent node.final Node
Node.parentNode()
Gets this node's parent node.Node.previousSibling()
Get this node's previous sibling.LeafNode.removeAttr
(String key) Node.removeAttr
(String attributeKey) Remove an attribute from this node.Node.root()
Get this node's root node; that is, its topmost ancestor.Node.shallowClone()
Create a stand-alone, shallow copy of this node.Node.traverse
(NodeVisitor nodeVisitor) Perform a depth-first traversal through this node and its descendants.Node.unwrap()
Removes this node from the DOM, and moves its children up into the node's parent.Wrap the supplied HTML around this node.Methods in org.jsoup.nodes that return types with arguments of type NodeModifier and TypeMethodDescriptionNode.childNodes()
Get this node's children.Node.childNodesCopy()
Returns a deep copy of this node's children.Element.ensureChildNodes()
LeafNode.ensureChildNodes()
Node.ensureChildNodes()
Node.siblingNodes()
Retrieves this node's sibling nodes.Methods in org.jsoup.nodes with parameters of type NodeModifier and TypeMethodDescriptionprotected void
Node.addChildren
(int index, Node... children) protected void
Node.addChildren
(Node... children) Insert the specified node into the DOM after this node (as a following sibling).Insert the specified node into the DOM after this node (i.e.Element.appendChild
(Node child) Add a node child node to this element.Insert the specified node into the DOM before this node (as a preceding sibling).Insert the specified node into the DOM before this node (i.e.protected Element
protected LeafNode
protected Node
private Element
Document.findFirstElementByTagName
(String tag, Node node) void
Element.insertChildren
(int index, Node... children) Inserts the given child nodes into this element at the specified index.(package private) static Document.OutputSettings
NodeUtils.outputSettings
(Node node) Get the output setting for this node, or if this node has no document (or parent), retrieve the default output settings(package private) static Parser
Get the parser that was used to make this node, or the default HTML parser if it has no parent.Element.prependChild
(Node child) Add a node to the start of this element's children.(package private) static boolean
Element.preserveWhitespace
(Node node) protected void
FormElement.removeChild
(Node out) protected void
Node.removeChild
(Node out) protected void
Node.reparentChild
(Node child) protected void
Node.replaceChild
(Node out, Node in) void
Node.replaceWith
(Node in) Replace this node in the DOM with the supplied node.protected void
Node.setParentNode
(Node parentNode) void
Method parameters in org.jsoup.nodes with type arguments of type NodeModifier and TypeMethodDescriptionElement.insertChildren
(int index, 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 NodeModifier and TypeMethodDescriptionHtmlTreeBuilder.parseFragment
(String inputFragment, Element context, String baseUri, Parser parser) Parser.parseFragment
(String fragmentHtml, Element context, String baseUri) Parse a fragment of HTML into a list of nodes.Parser.parseFragment
(String fragmentHtml, Element context, String baseUri, ParseErrorList errorList) Parse a fragment of HTML into a list of nodes.TreeBuilder.parseFragment
(String inputFragment, Element context, String baseUri, Parser parser) XmlTreeBuilder.parseFragment
(String inputFragment, String baseUri, Parser parser) XmlTreeBuilder.parseFragment
(String inputFragment, Element context, String baseUri, Parser parser) Parser.parseFragmentInput
(String fragment, Element context, String baseUri) Parser.parseXmlFragment
(String fragmentXml, String baseUri) Parse a fragment of XML into a list of nodes.Methods in org.jsoup.parser with parameters of type NodeModifier and TypeMethodDescription(package private) void
HtmlTreeBuilder.insertInFosterParent
(Node in) private void
HtmlTreeBuilder.insertNode
(Node node) private void
XmlTreeBuilder.insertNode
(Node node) -
Uses of Node in org.jsoup.safety
Methods in org.jsoup.safety with parameters of type Node -
Uses of Node in org.jsoup.select
Methods in org.jsoup.select with type parameters of type NodeMethods in org.jsoup.select with parameters of type NodeModifier and TypeMethodDescriptionstatic NodeFilter.FilterResult
NodeTraversor.filter
(NodeFilter filter, Node root) Start a depth-first filtering of the root and all of its descendants.void
Callback for when a node is first visited.void
Callback for when a node is first visited.void
Callback for when a node is last visited, after all of its descendants have been visited.void
Callback for when a node is last visited, after all of its descendants have been visited.static void
NodeTraversor.traverse
(NodeVisitor visitor, Node root) Start a depth-first traverse of the root and all of its descendants.