Re: (no subject)

Denis Davidov <[email protected]>
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <CALUsooW44wwOLfw-mP-qwyS3tj9RVjMegG6EvuSEhO=Jb4q53Q@mail.gmail.com>
2012/2/28 Phil Shafer <[email protected]>:
>>Could you show me how could I set my node as the context node? I've
>> tried to replace xmlXPathContextPtr->node with my node, but the
>> program crashed (while my ugly method works fine).
>
> I use nodePush() and nodePop().

Looks like I need some help here :) I create xmlXPathContextPtr with
xmlXPathNewContext(document). Usually I perform XPath-requests with
xmlXPathEvalExpression(expression, context);
But nodePush / nodePop works with xmlParserCtxtPtr. I investigated the
API and didn't find how I can obtain xmlParserCtxtPtr from my
xmlXPathContextPtr. Could you give me a hint? :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.