Re: CDATA in PHP DOM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



worked!!

"Rob Richards" <rrichards@xxxxxxx> wrote in message 
news:438F29DD.9030906@xxxxxxxxxx
> Guy Brom wrote:
>> Any idea what's wrong with the following? ($this_item['description'] has 
>> some html text I would like to paste as a CDATA section)
>>
>> $item->appendChild($dom->createElement('description', 
>> $dom->createCDATASection($this_item['description'])));
>
> createElement takes a string not a DOMNode. Append the CDATASection to the 
> element.
>
> Rob 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux