| 
 | DOMDocument::saveXMLDumps the internal XML tree back into a string Description
   public string DOMDocument::saveXML
    ([ DOMNode  $node[, int$options]] )Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below. Parameters
 
 Return Values
   Returns the XML, or  Errors/Exceptions
 
 Changelog
 
 Examples
 Example #1 Saving a DOM tree into a string 
<?phpThe above example will output: Saving all the document: <?xml version="1.0"?> <book> <title>This is the title</title> </book> Saving only the title part: <title>This is the title</title> See Also
 
 |