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