interface

XML.Node

interface Node

An element in the tree parse returns with { compact: false }.

  • attributes: Record<string, string>

    Attribute values by name as written, in document order, after attribute-value normalization and with defaults declared in the internal DTD subset applied. Namespace declarations (xmlns, xmlns:*) are ordinary attributes.

  • children: string | Node | Comment | ProcessingInstruction[]

    The element's content in document order: character data as strings (exact — CDATA sections, character references and internal entities expanded, whitespace untouched, adjacent text merged into one string), child elements, comments and processing instructions. An object here is an element if it has name, a comment if it has comment, and a processing instruction if it has target.

  • name: string

    The element name as written, including any namespace prefix ("soap:Envelope").