note 98209 added to domdocument.construct
| From: | _michael at osu1 dot php dot net | Date: | Tue, 01 Jun 2010 14:23:25 +0000 |
| Subject: | note 98209 added to domdocument.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169783@lists.php.net to get a copy of this message | ||
The constuctor arguments are useful if you want to build a new document using createElement,
appendChild etc.
By contrast, these arguments are overriden as soon as you load a document from source by calling
load() or loadXML().
* If the source contains an XML declaration specifying an encoding, that encoding is used.
* If the XML declaration does not specify an encoding, or if the source does not contain a
declaration at all, UTF-8 is assumed.
This behaviour applies no matter what you declared when you called new DOMDocument().
----
Server IP: 217.160.235.204
Probable Submitter: 91.57.106.39
----
Manual Page -- http://www.php.net/manual/en/domdocument.construct.php
Edit -- https://master.php.net/note/edit/98209
Del: integrated -- https://master.php.net/note/delete/98209/integrated
Del: useless -- https://master.php.net/note/delete/98209/useless
Del: bad code -- https://master.php.net/note/delete/98209/bad+code
Del: spam -- https://master.php.net/note/delete/98209/spam
Del: non-english -- https://master.php.net/note/delete/98209/non-english
Del: in docs -- https://master.php.net/note/delete/98209/in+docs
Del: other reasons-- https://master.php.net/note/delete/98209
Reject -- https://master.php.net/note/reject/98209
Search -- https://master.php.net/manage/user-notes.php