DOM XML Problems...

From: Date: Tue, 08 Aug 2000 02:55:01 +0000
Subject: DOM XML Problems...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10573@lists.php.net to get a copy of this message
Is there any reason why a CDATA section should cause the DOM XML module to crash? I've installed the latest libxml2-2.2.1-1 rpms and compiled php --with-dom=/usr. It all works fine until I try to read a document containing CDATA sections in the example below, I have been given an HTML form object in a CDATA section. Perhaps I am doing something wrong? The documentation for this implementation is terrible. <odata><![CDATA[ <SELECT name=ODATA> <OPTION VALUE="1">Option 1</OPTION> <OPTION VALUE="2">Option 2</OPTION> <OPTION VALUE="3">Option 3</OPTION> </SELECT> ]]> </odata> This is the line that crashes it - obviously the document is in $xml. $domtree = xmltree( $xml ); When I say crash, I mean "exit signal segmentation fault" in the apache error log. Any help would be appreciated Regards, Matthew Clark.

« previous php.general (#10573) next »