note 118075 added to libxml.constants
| From: | RiKdnua at mail dot ru | Date: | Tue, 29 Sep 2015 15:31:26 +0000 |
| Subject: | note 118075 added to libxml.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203876@lists.php.net to get a copy of this message | ||
Tested in PHP 5.2.9-2 (libxml Version 2.7.3) and PHP 5.2.17 (libxml Version 2.8.0)
In SimpleXMLElement LIBXML_NOXMLDECL does not work. XML declaration will be written to a file
doc.xml
<?php
ini_set("display_errors","on"); error_reporting(-1);
$xml="<?xml version='1.0'?>
<root><child>text</child></root>";
$xml=new simpleXMLelement($xml, LIBXML_NOXMLDECL);
$xml->asXML('doc.xml');
?>
----
Server IP: 72.52.91.14
Probable Submitter: 178.216.123.184
----
Manual Page -- http://php.net/manual/en/libxml.constants.php
Edit -- https://master.php.net/note/edit/118075
Del: integrated -- https://master.php.net/note/delete/118075/integrated
Del: useless -- https://master.php.net/note/delete/118075/useless
Del: bad code -- https://master.php.net/note/delete/118075/bad+code
Del: spam -- https://master.php.net/note/delete/118075/spam
Del: non-english -- https://master.php.net/note/delete/118075/non-english
Del: in docs -- https://master.php.net/note/delete/118075/in+docs
Del: other reasons-- https://master.php.net/note/delete/118075
Reject -- https://master.php.net/note/reject/118075
Search -- https://master.php.net/manage/user-notes.php