XmlBuilder class
A builder to create XML trees with code.
Constructors
- XmlBuilder({bool optimizeNamespaces = false})
- Construct a new XmlBuilder.
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- optimizeNamespaces → bool
- 
  If optimizeNamespaces is true, the builder will perform some
namespace optimization.
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  attribute(String name, Object? value, {String? namespace, XmlAttributeType? attributeType}) → void 
- 
  Adds a XmlAttributenode with the providednameandvalue.
- 
  build() → XmlNode 
- 
  Return the resulting XmlNode.
- 
  cdata(Object text) → void 
- 
  Adds a XmlCDATAnode with the providedtext.
- 
  comment(Object text) → void 
- 
  Adds a XmlCommentnode with the providedtext.
- 
  endElement() → void 
- 
  namespace(String? uri, [String? prefix]) → void 
- 
  Binds a namespace prefixto the provideduri. Theprefixcan be omitted to declare a default namespace. Throws an ArgumentException if theprefixis invalid or conflicts with an existing declaration.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  processing(String target, Object text) → void 
- 
  Adds a XmlProcessingnode with the providedtargetandtext.
- 
  startElement(String name, {String? namespace, Map< String?, String?> namespaces = const {}, Map<String, String> attributes = const {}, bool isSelfClosing = true, Object? nest}) → void
- 
  Adds a XmlElementnode with the provided tagname.
- 
  text(Object? text) → void 
- 
  Adds a XmlTextnode with the providedtext.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited