@federicocarboni/saxe
    Preparing search index...

    Interface SaxNamespaceHandler

    interface SaxNamespaceHandler {
        comment?(content: string): void;
        doctype?(doctype: Doctype): void;
        endCDataSection?(): void;
        endTag(name: QName, resolver: NamespaceResolver): void;
        processingInstruction?(target: string, content: string): void;
        startCDataSection?(): void;
        startTag(
            name: QName,
            attributes: NamespaceAttributes,
            resolver: NamespaceResolver,
        ): void;
        text(content: string, resolver: NamespaceResolver): void;
        xmlDecl?(xmlDecl: XmlDeclaration): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • A comment.

      <!-- content -->
      

      Parameters

      • content: string

        Comment content, whitespace is not trimmed or normalized.

      Returns void

    • Document type declaration.

      <!DOCTYPE example PUBLIC "-//Example//example" "./example.dtd">
      

      This handler is called before parsing any markup declarations.

      Parameters

      Returns void

    • A processing instruction.

      <?target content?>
      

      Parameters

      • target: string

        Processing instruction target, used to identify the application to which the instruction is directed.

      • content: string

        Processing instruction content, whitespace is not trimmed or normalized.

      Returns void

    • Text content.

      <element>
      content
      </element>

      This handler is equivalent to SaxHandler.text except it has access to the namespace resolver of the current element.

      Parameters

      • content: string

        Text content.

      • resolver: NamespaceResolver

        Namespace resolver relative to the current element, should not be used outside the handler.

      Returns void