XmlElement.cloneShallow

XmlNode cloneShallow() @safe

Creates a shallow clone of this element (no children).

Returns

A new XmlElement with the same name, attributes, namespace declarations, and location.