Types & Interfaces

XMLNode

Attributes

  • tag: string - The tag name of the node.

  • type: "text" | "element" | "error" - The type of the node.

  • attributes: Record<string, string> - An object containing the node's attributes.

  • children: XMLNode[] - An array of child nodes.

  • content?: string - Optional. The text content for text nodes, or the error content for error nodes.

  • pre?: string - Optional. Content that comes before the node in the raw XML.

  • post?: string - Optional. Content that comes after the node in the raw XML.

SaxaMLLTagEventType

  • "tagOpen" | "tagClose"

SaxaMLLUpdateEventType

  • "update"

SaxaMLLEventType

  • SaxaMLLTagEventType | SaxaMLLUpdateEventType

SaxaMLLTagEventCallback

  • (node: XMLNode) => any

SaxaMLLUpdateEventCallback

  • (args: [parent: XMLNode, child: XMLNode, isCommittedToParent: boolean]) => any

SaxaMLLEventTypeToCallback

  • `Mapped type that associates each event type with its corresponding callback type

SaxaMLLEventCallback

  • SaxaMLLTagEventCallback | SaxaMLLUpdateEventCallback

Last updated