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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC