Re: [PHP] DOM - Question about \0

2008-03-16 Thread Casey
On Sun, Mar 16, 2008 at 1:50 AM, dav <[EMAIL PROTECTED]> wrote: > Hi, > > I have question about \0 character with DOM : > >$cdata = 'foo' . "\0" . 'bar'; > > $dom = new DOMDocument('1.0', 'utf-8'); > $dom->formatOutput = true; > > $container = $dom->createElement('root'); > $blob =

[PHP] DOM - Question about \0

2008-03-16 Thread dav
Hi, I have question about \0 character with DOM : formatOutput = true; $container = $dom->createElement('root'); $blob = $dom->createElement('blob'); $blob->appendChild($dom->createCDATASection($cdata)); $container->appendChild($blob); $dom->appendChild(