php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23856 set attribute
Submitted: 2003-05-28 08:58 UTC Modified: 2003-05-28 09:48 UTC
From: anton_kar at mail dot ru Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.1 OS:
Private report: No CVE-ID: None
 [2003-05-28 08:58 UTC] anton_kar at mail dot ru
<pre>
// Simplified Chinese, national standard character set. 

$doc = domxml_open_mem('<?xml version="1.0" encoding="gb2312" ?><data/>');
$root = $doc->document_element();

$node = $doc->create_element("para");
$root->append_child($node);
$node->set_attribute("name","&#28814;&#24037;&#20316;");

echo ($root->dump_mem(true));

RESULT 
<?xml version="1.0" encoding="gb2312"?>
<data>
  <para name="&amp;#28814;&amp;#24037;&amp;#20316;"/>
</data>
Can I set 'normal' value?
</pre>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-28 09:48 UTC] rrichards@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See Bug #21213
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC