Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISaxHandler

Defines callbacks that are invoked during SAX parsing.

Note: Don't keep references to tokens! Tokens passed to the handler callbacks are pooled objects that are reused by the parser after callback finishes. Make a deep copy using IToken.clone to retain a token.

Hierarchy

Index

Methods

Optional cdata

Optional comment

Optional doctype

Optional endTag

Optional processingInstruction

Optional reset

  • reset(): void

Optional sourceEnd

  • sourceEnd(sourceLength: number): void
  • Triggered when parsing of the source is completed.

    Parameters

    • sourceLength: number

      The number of chars that were read from the source.

    Returns void

Optional startTag

Optional text

Generated using TypeDoc