XmlElement.tag constructor

XmlElement.tag(
  1. String qualifiedName, {
  2. Iterable<XmlAttribute> attributes = const [],
  3. Iterable<XmlNode> children = const [],
  4. bool isSelfClosing = true,
})

Creates an element with the qualified name, and with optional attributes and children.

Implementation

XmlElement.tag(
  String qualifiedName, {
  Iterable<XmlAttribute> attributes = const [],
  Iterable<XmlNode> children = const [],
  bool isSelfClosing = true,
}) : this(XmlName.fromString(qualifiedName), attributes, children,
          isSelfClosing);