copy method
Return a copy of this node and all its children.
Implementation
@override
XmlElement copy() => XmlElement(
  name.copy(),
  attributes.map((each) => each.copy()),
  children.map((each) => each.copy()),
  isSelfClosing,
);Return a copy of this node and all its children.
@override
XmlElement copy() => XmlElement(
  name.copy(),
  attributes.map((each) => each.copy()),
  children.map((each) => each.copy()),
  isSelfClosing,
);