note 35510 deleted from function.domdocument-create-cdata-section by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:40:50 +0000 |
| Subject: | note 35510 deleted from function.domdocument-create-cdata-section by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207402@lists.php.net to get a copy of this message | ||
Note Submitter: laurent at rezoloco dot com
----
add CDATA SECTION with xml content in a xml document
$doc_in=domxml_open_mem('<?xml
version="1.0"?><paragraphe></paragraphe>'));
$root=$doc_in->document_element ();
$node_txt_para=$root->new_child("txt_para","");
$cdata=$doc_in->create_cdata_section("<root><child
num=1></child></root>");
$node_txt_para->append_child($cdata);
$dump=$doc_in->dumpmem();
print($dump);