XmlPrettyWriter class

A visitor that writes XML nodes correctly indented and with whitespaces adapted.

Inheritance

Constructors

XmlPrettyWriter(StringSink buffer, {XmlEntityMapping? entityMapping, int? level, String? indent, String? newLine, Predicate<XmlNode>? preserveWhitespace, Predicate<XmlAttribute>? indentAttribute, Comparator<XmlAttribute>? sortAttributes, Predicate<XmlNode>? spaceBeforeSelfClose})

Properties

buffer StringSink
finalinherited
entityMapping XmlEntityMapping
finalinherited
hashCode int
The hash code for this object.
no setterinherited
indent String
final
indentAttribute → Predicate<XmlAttribute>?
final
level int
getter/setter pair
newLine String
final
preserveWhitespace → Predicate<XmlNode>?
final
pretty bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortAttributes Comparator<XmlAttribute>?
final
spaceBeforeSelfClose → Predicate<XmlNode>?
final

Methods

normalizeAttributes(List<XmlAttribute> attributes) List<XmlAttribute>
normalizeText(List<XmlNode> nodes) List<XmlNode>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visitAttribute(XmlAttribute node) → void
Visit an XmlAttribute node.
inherited
visitCDATA(XmlCDATA node) → void
Visit an XmlCDATA node.
inherited
visitComment(XmlComment node) → void
Visit an XmlComment node.
inherited
visitDeclaration(XmlDeclaration node) → void
Visit an XmlDeclaration node.
inherited
visitDoctype(XmlDoctype node) → void
Visit an XmlDoctype node.
inherited
visitDocument(XmlDocument node) → void
Visit an XmlDocument node.
override
visitDocumentFragment(XmlDocumentFragment node) → void
Visit an XmlDocumentFragment node.
inherited
visitElement(XmlElement node) → void
Visit an XmlElement node.
override
visitName(XmlName name) → void
Visit an XmlName.
inherited
visitProcessing(XmlProcessing node) → void
Visit an XmlProcessing node.
inherited
visitText(XmlText node) → void
Visit an XmlText node.
inherited
writeAttributes(XmlAttributes node) → void
override
writeIterable(Iterable<XmlNode> nodes, [String? separator]) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited