xml library
Dart XML is a lightweight library for parsing, traversing, querying and building XML documents.
Classes
- Elementype
- ElementypeNonselfclosing
- ElementypeSelfclosing
- XmlAncestorsIterable
- Iterable to walk over the ancestors of a node.
- XmlAncestorsIterator
- Iterator to walk over the ancestors of a node.
- XmlAttribute
- XML attribute node.
- XmlAttributeNaturalImpl
- XmlAttributes
- Attribute interface for nodes.
- XmlAttributeSyntheticImpl
- XmlBuilder
- A builder to create XML trees with code.
- XmlCDATA
- XML CDATA node.
- XmlCDATANaturalImpl
- XmlCDATASyntheticImpl
- XmlComment
- XML comment node.
- XmlCommentNaturalImpl
- XmlCommentSyntheticImpl
- XmlData
- Abstract XML data node.
- XmlDeclaration
- XML document declaration.
- XmlDeclarationNaturalImpl
- XmlDeclarationSyntheticImpl
- XmlDefaultEntityMapping
- Default entity mapping for XML, HTML, and HTML5 entities.
- XmlDescendantsIterable
- Iterable to walk over the descendants of a node.
- XmlDescendantsIterator
- Iterator to walk over the descendants of a node.
- XmlDoctype
- XML doctype node.
- XmlDoctypeNaturalImpl
- XmlDoctypeSyntheticImpl
- XmlDocument
- XML document node.
- XmlDocumentFragment
- XML document fragment node.
- XmlDocumentFragmentNaturalImpl
- XmlDocumentFragmentSyntheticImpl
- XmlDocumentNaturalImpl
- XmlDocumentSyntheticImpl
- XmlElement
- XML element node.
- XmlElementChildNatural
- XmlElementNaturalImpl
- XmlElementSyntheticImpl
- XmlEntityMapping
- Describes the decoding and encoding of character entities.
- XmlFollowingIterable
- Iterable to walk over the followers of a node.
- XmlFollowingIterator
- Iterator to walk over the followers of a node.
- XmlHasName
- Mixin for all nodes with a name.
- XmlName
- XML entity name.
- XmlNameNatural
- XmlNode
- Immutable abstract XML node.
- XmlNodeNatural
- XmlNullEntityMapping
- Entity mapping that skips all entity conversion, both on decoding and encoding input.
- XmlParentable
- Base interface for nodes with a parent.
- XmlPrecedingIterable
- Iterable to walk over the precedents of a node.
- XmlPrecedingIterator
- Iterator to walk over the precedents of a node.
- XmlPrefixName
- An XML entity name with a prefix.
- XmlPrefixNameNaturalImpl
- XmlPrefixNameSyntheticImpl
- XmlPrettyWriter
- A visitor that writes XML nodes correctly indented and with whitespaces adapted.
- XmlProcessing
- XML processing instruction.
- XmlProcessingNaturalImpl
- XmlProcessingSyntheticImpl
- XmlSimpleName
- An XML entity name without a prefix.
- XmlSimpleNameNaturalImpl
- XmlSimpleNameSyntheticImpl
- XmlSourceRange
- XmlSourceRangeImpl
- XmlText
- XML text node.
- XmlTextNaturalImpl
- XmlTextSyntheticImpl
- XmlToken
- Shared tokens for XML reading and writing.
- XmlTransformer
- Transformer that creates an identical copy of the visited nodes.
- XmlTreeGrammarDefinition
- XML grammar definition.
-
XmlVisitor<
T> - Basic visitor over XmlNodes.
- XmlWriter
- A visitor that writes XML nodes exactly as they were parsed.
Enums
- XmlAttributeType
- Enum of the attribute quote types.
Mixins
-
XmlGrammarMixin<
ATTRIBUTE extends Object, ATTRIBUTEVALUEDOUBLE extends Object, ATTRIBUTEVALUESINGLE extends Object, COMMENT extends Object, CDATA extends Object, DECLARATION extends Object, DOCTYPE extends Object, ELEMENT extends Object, PROCESSING extends Object, QUALIFIED extends Object, CHARACTERDATA extends Object, SPACETEXT extends Object> - XML parsers that are shared between the XML tree and event based parsers.
Extensions
Constants
- encodingAttribute → const String
- standaloneAttribute → const String
- versionAttribute → const String
- Known attribute names.
Properties
- defaultEntityMapping ↔ XmlEntityMapping
-
The entity mapping used when nothing else is specified.
getter/setter pair
Functions
-
createXmlName(
String local, [String? prefix]) → XmlName -
Creates a qualified XmlName from a
local
name and an optionalprefix
. -
createXmlNameFromString(
String qualified) → XmlName -
Create a XmlName by parsing the provided
qualified
name. -
createXmlNameNaturalFromString(
XmlSourceRange range, String qualified) → XmlNameNatural -
Create a XmlName by parsing the provided
qualified
name. -
filterElements(
Iterable< XmlNode> iterable, String name, String? namespace) → Iterable<XmlElement> -
parse(
String input, {XmlEntityMapping? entityMapping}) → XmlDocument -
Return an XmlDocument for the given
input
string, or throws an XmlParserException if the input is invalid. -
parseXmlDocument(
String input, {XmlEntityMapping? entityMapping}) → XmlDocumentNaturalImpl -
Return an XmlDocument for the given
input
string, or throws an XmlParserException if the input is invalid. -
parseXmlDocumentFragment(
String input, {XmlEntityMapping? entityMapping}) → XmlDocumentFragment -
Return an XmlDocumentFragment for the given
input
string, or throws an XmlParserException if the input is invalid.
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.