note 98209 added to domdocument.construct

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.