SaxaMLL
  • SaxaMLL
  • Installation
  • Getting started
  • How it works
  • Cookbook
    • Model routing
    • Resource getter
  • Reference
    • Parser
    • Generator
    • Utilities
    • Types & Interfaces
Powered by GitBook
On this page
  • XMLNode
  • Attributes
  • SaxaMLLTagEventType
  • SaxaMLLUpdateEventType
  • SaxaMLLEventType
  • SaxaMLLTagEventCallback
  • SaxaMLLUpdateEventCallback
  • SaxaMLLEventTypeToCallback
  • SaxaMLLEventCallback
  1. Reference

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

PreviousUtilities

Last updated 9 months ago