|
DOMDocument::saveXMLDumps the internal XML tree back into a string Beschreibung
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. Parameter-Liste
Rückgabewerte
Returns the XML, or Fehler/Exceptions
Changelog
Beispiele
Beispiel #1 Saving a DOM tree into a string
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 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> Siehe auch
|