There's no API for that. You could do it yourself. The childNodes() method will return an array of immediate children. But it would include text and comment nodes. You would just filter those out.
I'm curious why you can't use xpath though (or don't want to).
--
You received this message because you are subscribed to the Google Groups "libxmljs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxmljs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.