xml_events library

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

Classes

XmlCDATAEvent
Event of an XML CDATA node.
XmlCommentEvent
Event of an XML comment node.
XmlDeclarationEvent
Event of an XML declaration.
XmlDoctypeEvent
Event of an XML doctype node.
XmlEndElementEvent
Event of an closing XML element node.
XmlEvent
Immutable base class for all events.
XmlEventAttribute
Immutable attributes of XML events.
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.
XmlProcessingEvent
Event of an XML processing node.
XmlStartElementEvent
Event of an XML start element node.
XmlSubtreeSelector
A converter that selects XmlEvent objects that are part of a sub-tree started by an XmlStartElementEvent satisfying the provided predicate.
XmlTextEvent
Event of an XML text node.
XmlWithParentEvents
A converter that annotates XmlEvent objects with their parent events.

Enums

XmlAttributeType
Enum of the attribute quote types.
XmlNodeType
Enum of the different XML Node types.

Mixins

XmlEventVisitor
Basic visitor over XmlEvent nodes.

Functions

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