Home >Backend Development >PHP Tutorial >PHP savexml function

PHP savexml function

WBOY
WBOYOriginal
2016-07-29 09:13:381825browse

savexml() function: Put the internal xml document into a string;

For Example:

<code> "test.xml"
<span><?xml version="1.0" encoding="ISO-8859-1"?></span><span><<span>note</span>></span><span><<span>to</span>></span>Tove<span></<span>to</span>></span><span><<span>from</span>></span>Jani<span></<span>from</span>></span><span><<span>heading</span>></span>Reminder<span></<span>heading</span>></span><span><<span>body</span>></span>Don't forget me this Weekend!<span></<span>body</span>></span><span></<span>note</span>></span>$xmlDoc=new DOMDocument();
$xmlDoc->load("test.xml");
print $xmlDoc->saveXML();

OUTPUT:

Tove Jani Reminder Don't forget me this weekend! </code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the PHP savexml function, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn