XmlElement.tag constructor

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

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

Implementation

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