elementNodeAt

fun Element.elementNodeAt(pointer: KPointer): Element?(source)

Returns the native KSoup Element at pointer when the path resolves to a single element, or null otherwise.

Returns null for repeated-tag lists, attribute (primitive) paths, and absent paths.

Return

The native Element at the specified path, or null.

Parameters

pointer

The KPointer identifying the value to retrieve.


fun Element.elementNodeAt(path: String): Element?(source)

Parses path via KPointer.from and returns the native KSoup Element at that path, or null.

Return

The native Element at the specified path, or null.

Parameters

path

A pointer string (RFC 6901, fragment, or dot-notation, dispatched by prefix).

Throws

if path is not a valid pointer string.