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 anXmlStartElementEvent
satisfying the provided predicate. - XmlWithParentEvents
-
A converter that annotates
XmlEvent
objects with their parent events.
Enums
- XmlAttributeType
- Enum of the attribute quote types.
Extensions
-
XmlEventDecoderExtension
on Stream<
String> -
XmlEventEncoderExtension
on Stream<
List< XmlEvent> > -
XmlFlattenStreamExtension
on Stream<
Iterable< T> > -
XmlForEachEventExtension
on Stream<
XmlEvent> -
XmlForEachEventListExtension
on Stream<
List< XmlEvent> > -
XmlNodeDecoderExtension
on Stream<
List< XmlEvent> > -
XmlNodeEncoderExtension
on Stream<
List< XmlNode> > -
XmlNormalizeEventsExtension
on Stream<
List< XmlEvent> > -
XmlSubtreeSelectorExtension
on Stream<
List< XmlEvent> > -
XmlWithParentEventsExtension
on Stream<
List< XmlEvent> >
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)