xml_events library

Dart XML Events is an event based library to asynchronously parse XML documents and to convert them to other representations.

Classes

XmlEventCodec
Converts between String and XmlEvent sequences.
XmlEventDecoder
A converter that decodes a String to a sequence of XmlEvent objects.
XmlEventEncoder
A converter that encodes a sequence of XmlEvent objects to a String.
XmlNodeCodec
Converts between XmlEvent sequences and XmlNode trees.
XmlNodeDecoder
A converter that decodes a sequence of XmlEvent objects to a forest of XmlNode objects.
XmlNodeEncoder
A converter that encodes a forest of XmlNode objects to a sequence of XmlEvent objects.
XmlNormalizeEvents
A converter that normalizes sequences of XmlEvent objects, namely combines adjacent and removes empty text events.
XmlSubtreeSelector
A converter that selects XmlEvent objects that are part of a sub-tree started by an XmlStartElementEvent satisfying the provided predicate.
XmlWithParentEvents
A converter that annotates XmlEvent objects with their parent events.

Enums

XmlAttributeType
Enum of the attribute quote types.

Functions

parseEvents(String input, {XmlEntityMapping? entityMapping}) Iterable<XmlEvent>
Returns an Iterable of XmlEvent instances over the provided String.

Typedefs

EventHandler<T> = void Function(T event)