Re: CDATA

[email protected] ("Anton I. Sokolovsky")
Newsgroups php.xml.dev
Message-ID <[email protected]>
"Kevin Waterson" <[email protected]> wrote in message news:[email protected]...
> how does one add CDATA? eg:
> <![CDATA[ <result from process> ]]>

$node - parent node to append to
$inner - content of CDATA

$cdnode = $doc->create_cdata_section(utf8_encode($inner));
$cdnode = $node->append_child($cdnode);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.