Re: XML DOM function errors.

From: Date: Fri, 06 Oct 2000 18:43:41 +0000
Subject: Re: XML DOM function errors.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18958@lists.php.net to get a copy of this message
I don't know much about xml, but I was under the impression that you couldn't intermix <!blah blah blah> type tags with xml tags. Those go at the very top of the doc or in a dtd. But I might be wrong. Did you validate your xml file with something like xmllint?? It might catch some errors. On Fri, 6 Oct 2000, Kenny wrote: >The DOM functions: xmltree() has problems creating object for XML document contains >CDATA sections. > > Example: > >file.xml >-------------------------------- > <apple> > <![CDATA[ ...anything ]]> > </apple> >------------------------------- > > will cause the PHP program >---------------------------------------------------------- > $data = implode("",file("file.xml")); > $osah = xmltree ($data); > print_r ($osah); >---------------------------------------------------------- > >to fail. > >I used: libxml2-2.2.4, php-4.0.2, apache_1.3.12. > >Does any one knows how to fix it? > >-Kenny > > >

« previous php.general (#18958) next »