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.
XmlGrammarDefinition<TNode, TName>
XML grammar definition with TNode and TName.
XmlName
XML entity name.
XmlNode
Immutable abstract XML node.
XmlNullEntityMapping
Entity mapping that skips all entity conversion, both on decoding and encoding input. [...]
XmlParserDefinition
XML parser that defines standard actions to the the XML tree.
XmlPrettyWriter
A visitor that writes XML nodes correctly indented and with whitespaces adapted.
XmlProcessing
XML processing instruction.
XmlProductionDefinition
XML parser that defines standard actions to the the XML tree.
XmlText
XML text node.
XmlToken
Shared tokens for XML reading and writing.
XmlTransformer
Transformer that creates an identical copy of the visited nodes. [...]
XmlWriter
A visitor that writes XML nodes exactly as they were parsed.

Mixins

XmlHasAttributes
Mixin for nodes with attributes.
XmlHasChildren
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.

Extensions

XmlAncestorsExtension
XmlDescendantsExtension
XmlFindExtension
XmlFlattenIterableExtension
XmlFollowingExtension
XmlNodesExtension
XmlNormalizerExtension
XmlParentExtension
XmlPrecedingExtension
XmlSiblingExtension
XmlTransformerExtension

Functions

parse(String input, {XmlEntityMapping entityMapping = const XmlDefaultEntityMapping.xml()}) XmlDocument
Return an XmlDocument for the given input string, or throws an XmlParserException if the input is invalid. [...]
@Deprecated('Use `XmlDocument.parse` instead')

Enums

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

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.