Re: Problems with Config - which leads to problems with XML_Parse
| From: | Stephan Wentz | Date: | Tue, 19 Aug 2003 13:42:39 +0000 |
| Subject: | Re: Problems with Config - which leads to problems with XML_Parse | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20051@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
Can you modify Config_Container_XML::cdataHandler like this and tell me if
it works any better :
function cdataHandler($xp, $cdata)
{
$cdata = trim($cdata);
if ($cdata != '') {
$container =& $this->containers[count($this->containers)-1];
$container->setType('directive');
$container->setContent($container->getContent().$cdata);
}
} // end func cdataHandler
Thanks,
yes, it works! great ;-)
bye, stephan