|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-28 09:48 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
<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","炎工作"); echo ($root->dump_mem(true)); RESULT <?xml version="1.0" encoding="gb2312"?> <data> <para name="&#28814;&#24037;&#20316;"/> </data> Can I set 'normal' value? </pre>