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.
XmlData
Abstract XML data node.
XmlDoctype
XML doctype node.
XmlDocument
XML document node.
XmlDocumentFragment
XML document fragment node.
XmlElement
XML element node.
XmlGrammarDefinition<TNode, TName>
XML grammar definition with TNode and TName.
XmlName
XML entity name.
XmlNamed
A named XML node, such as an XmlElement or XmlAttribute.
XmlNode
Immutable abstract XML node.
XmlParent
Abstract XML node with actual children.
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

XmlOwned
Mixin for objects that are a child of a different XmlNode.
XmlVisitable
Interface for classes that can be visited using an XmlVisitor.
XmlVisitor
Basic visitor over XmlVisitable nodes.
XmlWritable
Mixin to serialize XML to a StringBuffer.

Functions

encodeXmlAttributeValue(String input, XmlAttributeType attributeType) → String
Encode a string to be serialized as an XML attribute value.
encodeXmlAttributeValueWithQuotes(String input, XmlAttributeType attributeType) → String
Encode a string to be serialized as an XML attribute value with quotes.
encodeXmlText(String input) → String
Encode a string to be serialized as an XML text node.
parse(String input) XmlDocument
Return an XmlDocument for the given input string, or throws an XmlParserException if the input is invalid. [...]

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.