2010-10-09, 07:49:34
ccagle8 Wrote:the line it's talking about is "public function..." --- i dont see anything wrong with this code ... unless of course some hosts don't have access to the special variable $this.
class SimpleXMLExtended extends SimpleXMLElement{
public function addCData($cdata_text){
$node= dom_import_simplexml($this);
$no = $node->ownerDocument;
$node->appendChild($no->createCDATASection($cdata_text));
}
}
I don't know why you were considering this piece of code, but I'm having problems with changedata.php. It stops exactly at the addCData method.
Do you have any idea?
Thanks.