Skip to main content
Version: v0.0.3

Interface: XmlElement

A namespace-stripped, immutable view of an XML element. This is the only XML shape the rest of the SCRIPT parser sees: the fast-xml-parser output is transformed into this tree at load time so downstream code never depends on the parser's representation.

Properties

attrs

readonly attrs: Readonly<Record<string, string>>

Attributes, prefix-stripped, in document order.


children

readonly children: readonly XmlElement[]

Child elements, in document order.


name

readonly name: string

Local element name, namespace prefix stripped (e.g. Message).


text

readonly text: string

Concatenated direct text content, verbatim (not trimmed).