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