Map2Xml class
Class for converting Dart Maps to XML
Credits to Stefan Goessner/2006 (http://goessner.net/)
Keys in the Map are converted to child tag names, keys prefixed with @ are converted to tag attributes.
The #text
keys are converted to the text values of the tags.
The #cdata
keys are converted to text values of CDATA tags.
Lists are converted to multiple tags with the same name.
See also: https://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
Constructors
Properties
- attrPrefix → String
-
XML attribute prefix in JSON
final
- cdataNode → String
-
CDATA property name in JSON
final
- eol → String
-
Line ending
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indent → int
-
Indentation for XML Formatting
final
- map → DataMap
-
Dart map to convert
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textNode → String
-
Text property name in JSON
final
- xmlPrefix → String
-
XML Processing Instruction
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
) → String - Converts Dart Maps to XML
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultXmlPrefix → const String
- XML Processing Instruction by default