[PHP-DEV] How to add new functions to SimpleXML extention

2004-01-12 Thread Alexander
Hi! I'm just playing with simplexml and wonder if two new functions of the simplexml_element object would be usefull: getName() and getParent(). I'm interesting in adding them to the extention, if possible. What should I do for this? (I also think that it may be in FAQ, but I did not find that

Re: [PHP-DEV] How to add new functions to SimpleXML extention

2004-01-12 Thread Sterling Hughes
Funny, i writing a response to adam's message while this got to the mailing list. Take a look at my response to adam, as it covers this patch as well. -Sterling Hi! I'm just playing with simplexml and wonder if two new functions of the simplexml_element object would be usefull: getName()

Re: [PHP-DEV] How to add new functions to SimpleXML extention

2004-01-12 Thread Marcus Boerger
Hello Alexander, generally a good idea but we are in feature freeze mode for PHP 5.0.x which is our current head. That means you have to suspend your idea until HEAD and PHP_5_0 are different branches. This will most likely happen during the next two months. To not forget your idea you can open a

Re: [PHP-DEV] How to add new functions to SimpleXML extention

2004-01-12 Thread Alexander
Hi, Hope, I understand your point. It looks like having two DOMs is not in your plans :-) getParent is really equal to xsearch('..'). But what about name? Is it possible to get the name of the current simplexml_element using xsearch? I also wonder if I created right functions because I plan to