Re: FW: [PHP-DEV] Autoboxing in php 5.1
| From: | Rob Richards | Date: | Tue, 15 Feb 2005 14:08:12 +0000 |
| Subject: | Re: FW: [PHP-DEV] Autoboxing in php 5.1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14970@lists.php.net to get a copy of this message | ||
You have to build an xmlNodeSet by hand.
The DOMNodeList class wraps many different types of data to iterate (HastTables, xmlHashTables, nodeIterators, notationIterator, etc...). Everything works on live data so no xmlNodeSets are used since those are static. The iterators all work directly on the real data whever it may live in libxml.
Rob
Christian Stocker wrote:
That's indeed what I'm talking about. It indeed shouldn't be to hard, but it takes some time get it all up and running on windows :). I managed to get it to work, except for the xmlNodeSet part. How do I get a xmlNodeSet pointer from a dom_nodelist_class_entry?Maybe you can learn from PHP_FUNCTION(dom_nodelist_item) resp. dom_nodelist_length_read in ext/dom/nodelist.c Or wait until Rob answers ;) I didn't find (in 2 minutes time..) an easy way to do this, Rob did all that stuff.