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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anton_kar at mail dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 08:01:30 2025 UTC