copy method

Return a copy of this node and all its children.

Implementation

@override
XmlDocument copy() => XmlDocumentSyntheticImpl(
      children.map((each) => each.copy()),
    );