PHP » GoLang |
login |
register |
about
|
GoLang DOMDocument::saveXML
request it (432)
GoLang replacement for PHP's DOMDocument::saveXML
[edit | history]
DOMDocument::saveXML(PHP 5, PHP 7) DOMDocument::saveXML — Dumps the internal XML tree back into a string DescriptionCreates 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
<?php The 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
|
more
Recently updated
more
Most requested
more
Last requests
|