[PHP] Re: CDATA in PHP DOM

2005-12-01 Thread Guy Brom
worked!! "Rob Richards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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'

[PHP] Re: CDATA in PHP DOM

2005-12-01 Thread Rob Richards
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 DO