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.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php