You are here: Re: CDATA in PHP DOM « PHP « IT news, forums, messages
Re: CDATA in PHP DOM

Posted by "Guy Brom" on 10/11/93 11:33

worked!!

"Rob Richards" <rrichards@php.net> wrote in message
news:438F29DD.9030906@php.net...
> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация