Re: CDATA

From: Date: Sat, 20 Sep 2003 03:16:43 +0000
Subject: Re: CDATA
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-203@lists.php.net to get a copy of this message
This one time, at band camp, Kevin Waterson <kevin@oceania.net> wrote: > This one time, at band camp, Kevin Waterson <kevin@oceania.net> wrote: > > > How do we now go about adding CDATA? > > > > eg > > > > $cdata= '<my_text><![CDATA[ some text here ]]></my_text>'; > > $dom = new domDocument(); > > > > $dom->cdataSection($cdata); > > I found in the source domCDATASection() but have had no luck with > this either. ahh, needs to be used with appendChild() $new=$this->root->appendChild(new domCDATASection($cdata)); Kevin -- ______ (_____ \ _____) ) ____ ____ ____ ____ | ____/ / _ ) / _ | / ___) / _ ) | | ( (/ / ( ( | |( (___ ( (/ / |_| \____) \_||_| \____) \____) Kevin Waterson Port Macquarie, Australia

« previous php.xml.dev (#203) next »