XML_Transformer: overloadNamespace help

From: Date: Fri, 27 Sep 2002 22:07:42 +0000
Subject: XML_Transformer: overloadNamespace help
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2398@lists.php.net to get a copy of this message
Greetings, I'm having a little trouble understanding overloadNamespace in the XML_Transformer package. Unfortunately, I dont seem to be good enough at reading source to decipher exactly what I can do with it, but what I wnat is something like this: <?php class Foo{ var $data; funciton startElement($a, $b) { $this->data[$a]['attributes'] = $b; } function endElement($a, $b) { $this->data[$a]['cdata'] = $b; } function getData() { return $this->data; } } $t = new XML_Transformer(); $foo = new Foo(); $t->overloadElement('Foo', &$foo); $t->transform('<bar>some xml</bar>'); var_dump($foo->getData()); ?> Follow? Basically, I want the overloadNamespace object to be available for further tweaking after it is tranformed.... Any help would be appriciated. TIA, Tom

« previous php.pear.general (#2398) next »