PHP » PYTHON |
login |
register |
about
|
DOMDocument::saveXML(PHP 5) 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 ValuesReturns the XML, or FALSE if an error occurred. 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>
|
more
Recently updated
more
Most requested
more
Last requests
|