I’ve looked through the docs and it seems that you can only execute an xpath search from a xmlDocPtr by creating an xpath context. Is there anyway in libxml2 to xpath search from a xmlNodePtr?
I’ve looked through the docs and it seems that you can only execute an
Share
It turns out you can cast
xmlNodePtrtoxmlDocPtrand visa-versa.