Skip to content
A

NodeLens

Defined in: src/core/producer.ts:65

The narrow, relative-only surface a CustomProducer receives.

A custom producer never sees the raw XMLAdapter or escapes its subtree — it reads text and child nodes relative to the node it was mounted on.

name(): string | null;

Defined in: src/core/producer.ts:67

Local (namespace-stripped) name of this lens’ own node (null if none).

string | null


text(): string | null;

Defined in: src/core/producer.ts:69

Trimmed text content of this lens’ own node (null if empty).

string | null


textAt(xpath): string | null;

Defined in: src/core/producer.ts:71

Trimmed text at a relative XPath (null if the node is absent/empty).

ParameterType
xpathstring

string | null


attr(xpath): string | null;

Defined in: src/core/producer.ts:73

Value of an attribute reached by a relative XPath ending in /@name.

ParameterType
xpathstring

string | null


all(xpath): NodeLens[];

Defined in: src/core/producer.ts:75

A lens per node matching a relative XPath.

ParameterType
xpathstring

NodeLens[]