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
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|