Interface ParseXmlHandler<T>

A handler for XML deserialization.

interface ParseXmlHandler<T> {
    cDataNode(str: string): void;
    endDocument(): T;
    endElement(): void;
    startDocument(): void;
    startElement(name: QName, attributes: Attributes): void;
    textNode(str: string): void;
}

Type Parameters

  • T

Implemented by

Methods

  • Provides a raw substring as a cdata node. This text is not expected to be decoded.

    Parameters

    • str: string

    Returns void

  • A document has completed parsing, the final object is ready.

    Returns T

  • Invoked after an element closing tag.

    Returns void

  • A new document has begun.

    Returns void

  • Invoked when a new element has been started, after the element's attributes have been read.

    Parameters

    • name: QName

      An object representing the element's name and namespace.

    • attributes: Attributes

      The attributes associated with the currently opening element.

    Returns void

  • Provides a raw substring as a text node. The given text is expected to be decoded using decodeEntities.

    Parameters

    • str: string

    Returns void