Interface XMLSerializer

    Provides the serializeToString() method to construct an XML string representing a DOM tree.

    MDN Reference

    interface XMLSerializer {
        serializeToString(root: Node): string;
    }

    Methods