note 102963 added to xmlreader.readouterxml
| From: | simon at avalon dot net dot nz | Date: | Thu, 17 Mar 2011 00:35:23 +0000 |
| Subject: | note 102963 added to xmlreader.readouterxml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177952@lists.php.net to get a copy of this message | ||
Be aware that when you extract a piece of XML from a larger XML document using the readOuterXML()
function, it tries to determine the namespaces (as defined in the original XML document) that apply
to the new piece, and inserts them into the appropriate tags as xmlns attributes. This can be
disconcerting, but it should be a benign alteration in most cases, and I understand that it causes
the new chunk of XML to be correctly formatted so it is valid in it's own right.
As far as I'm aware it's not possible to change this behaviour.
----
Server IP: 69.147.83.197
Probable Submitter: 203.167.146.159
----
Manual Page -- http://www.php.net/manual/en/xmlreader.readouterxml.php
Edit -- https://master.php.net/note/edit/102963
Del: integrated -- https://master.php.net/note/delete/102963/integrated
Del: useless -- https://master.php.net/note/delete/102963/useless
Del: bad code -- https://master.php.net/note/delete/102963/bad+code
Del: spam -- https://master.php.net/note/delete/102963/spam
Del: non-english -- https://master.php.net/note/delete/102963/non-english
Del: in docs -- https://master.php.net/note/delete/102963/in+docs
Del: other reasons-- https://master.php.net/note/delete/102963
Reject -- https://master.php.net/note/reject/102963
Search -- https://master.php.net/manage/user-notes.php