wholeTextAt

fun Element.wholeTextAt(pointer: KPointer): String?(source)

Returns the wholeText() of the single element at pointer, or null if the path does not resolve to a single element.

Return

The element's original, un-normalized combined text, or null.

Parameters

pointer

The KPointer identifying the element.


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

Parses path via KPointer.from and returns the wholeText() of the single element at that path, or null.

Return

The element's original, un-normalized combined text, 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.