Skip to main content
Module

x/xmlparser/mod.ts>Node

naive xml parser for deno
Latest
class Node
import { Node } from "https://deno.land/x/xmlparser@v0.2.0/mod.ts";

Constructors

new
Node(
tag: string,
value?: ReflectedTypes,
parent?: Node | null,
attr?: NodeAttr,
children?: NodeChildren,
)

Methods

find(route: string[]): Node[]
getAttr(key: string): ReflectedTypes | undefined
getChild(idx: number): Node | null
getChild(tag: string): Node | null
getChildren(tag: string)
getValue<T extends ReflectedTypes>(defaultValue: T): T
setAttr(key: string, value: ReflectedTypes)
toString(padding?: number)