API reference
Preparing search index…

XMLNodeHandlerCallbacks

Synchronous implementations of all Rml::XMLNodeHandler virtuals.

interface XMLNodeHandlerCallbacks {
    elementData(parser: XMLParser, data: string, type: XMLDataType): boolean;
    elementEnd(parser: XMLParser, name: string): boolean;
    elementStart(
        parser: XMLParser,
        name: string,
        attributes: XMLAttributes,
    ): null | Element;
}
Source & inheritance
Member directory3

Methods

Methods

  • Handle a closing tag.

    Parameters

    parser

    Callback-scoped parser.

    name
    string

    Lowercase closing tag.

    Returns

    boolean

    Native handler result; the upstream XML parser ignores this flag.

    Source & inheritance
  • Handle a start tag and return a node already owned by this parse subtree.

    Parameters

    parser

    Callback-scoped native parser.

    name
    string

    Lowercase tag.

    attributes

    Independent attributes.

    Returns

    null | Element

    Checked subtree element or null to inherit the parent's element.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0