note 57277 added to function.dom-domdocument-savexml
| From: | doc dot php dot net at webdevelopers dot cz | Date: | Thu, 29 Sep 2005 10:25:42 +0000 |
| Subject: | note 57277 added to function.dom-domdocument-savexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95965@lists.php.net to get a copy of this message | ||
saveXML() does not produce valid XML in case that the DOM was build using loadHTML() method.
You can experience double attributes (for example double @xmlns attribute on <html> element)
or for example two dashes inside the XML comment (<script><!-- for(a=10; a < 10;
a--)...; --></script>).
Don't be confused if the result of saveXML() cannot be loaded again with loadXML().
Elixon
----
Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-savexml.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57277
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57277&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57277&report=yes
Search -- http://master.php.net/manage/user-notes.php