xml library

Dart XML is a lightweight library for parsing, traversing, querying and building XML documents.

Classes

XmlAttribute
XML attribute node.
XmlBuilder
A builder to create XML trees with code.
XmlCDATA
XML CDATA node.
XmlComment
XML comment node.
XmlDeclaration
XML document declaration.
XmlDefaultEntityMapping
Default entity mapping for XML, HTML, and HTML5 entities.
XmlDoctype
XML doctype node.
XmlDocument
XML document node.
XmlDocumentFragment
XML document fragment node.
XmlElement
XML element node.
XmlEntityMapping
Describes the decoding and encoding of character entities.
XmlName
XML entity name.
XmlNode
Immutable abstract XML node.
XmlNullEntityMapping
Entity mapping that skips all entity conversion, both on decoding and encoding input.
XmlPrettyWriter
A visitor that writes XML nodes correctly indented and with whitespaces adapted.
XmlProcessing
XML processing instruction.
XmlText
XML text node.
XmlToken
Shared tokens for XML reading and writing.
XmlWriter
A visitor that writes XML nodes exactly as they were parsed.

Enums

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

Mixins

XmlFormatException
Mixin for exceptions that follow the FormatException of Dart.
XmlHasAttributes
Mixin for nodes with attributes.
XmlHasChildren<T extends XmlNode>
Mixin for nodes with children.
XmlHasName
Mixin for all nodes with a name.
XmlHasParent<T extends XmlNode>
Mixin for nodes with a parent.
XmlHasVisitor
Mixin for classes that can be visited using an XmlVisitor.
XmlHasWriter
Mixin to serialize XML to a StringBuffer.
XmlVisitor
Basic visitor over XmlHasVisitor nodes.

Properties

defaultEntityMapping XmlEntityMapping
The entity mapping used when nothing else is specified.
getter/setter pair

Exceptions / Errors

XmlException
Abstract exception class.
XmlNodeTypeException
Exception thrown when an unsupported node type is used.
XmlParentException
Exception thrown when the parent relationship between nodes is invalid.
XmlParserException
Exception thrown when parsing of an XML document fails.
XmlTagException
Exception thrown when the end tag does not match the open tag.