Package-level declarations

Types

Link copied to clipboard

A single key + value attribute. (Only used for presentation.)

Link copied to clipboard

The attributes of an Element.

Link copied to clipboard
class Comment(data: String) : LeafNode

A comment node.

Link copied to clipboard
class DataNode(data: String) : LeafNode

Create a new DataNode. A data node, for contents of style, script tags etc, where contents should not show in text().

Link copied to clipboard
class Document(namespace: String, location: String?) : Element

Create a new, empty Document, in the specified namespace.

Link copied to clipboard
class DocumentType(name: String, publicId: String, systemId: String) : LeafNode

A <!DOCTYPE> node. Create a new doctype element.

Link copied to clipboard
open class Element : Node

An HTML Element consists of a tag name, attributes, and child nodes (including text nodes and other elements).

Link copied to clipboard
object Entities

HTML entities, and escape routines. Source: [W3C

Link copied to clipboard
class FormElement(tag: Tag, baseUri: String?, attributes: Attributes?) : Element

A HTML Form Element provides ready access to the form fields/controls that are associated with it. It also allows a form to easily be submitted. Create a new, standalone form element.

Link copied to clipboard
abstract class LeafNode : Node

A node that does not hold any children. E.g.: {@link TextNode}, {@link DataNode}, {@link Comment}.

Link copied to clipboard
abstract class Node : KCloneable<Node>

The base, abstract Node model. {@link Element}, {@link Document}, {@link Comment}, {@link TextNode}, et al., are instances of Node.

Link copied to clipboard
class NodeIterator<T : Node>(start: Node, type: KClass<T>) : MutableIterator<T>

Iterate through a Node and its tree of descendants, in document order, and returns nodes of the specified type. This iterator supports structural changes to the tree during the traversal, such as Node.remove, Node.replaceWith, Node.wrap, etc.

Link copied to clipboard
data class Range(start: Range.Position, end: Range.Position)

A Range object tracks the character positions in the original input source where a Node starts or ends. If you want to track these positions, tracking must be enabled in the Parser with com.fleeksoft.ksoup.parser.Parser.setTrackPosition.

Link copied to clipboard
open class TextNode(text: String) : LeafNode

A text node.

Link copied to clipboard
class XmlDeclaration(name: String, isProcessingInstruction: Boolean) : LeafNode

An XML Declaration.