Skip to content

Events API #14

@vitkarpov

Description

@vitkarpov

The one like htmlparser2 has:

import {parse, TYPES} from 'fast-xml-parser';

parse(xml).on(TYPES.OPENING_TAG, (node) => {
  // Node { type: 'OPENING_TAG', name: 'html' }
  console.log('=>', node);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions