Re: [xml] relative xpath matches nodes anywhere in tree

2012-05-26 Thread Daniel Veillard
On Fri, May 25, 2012 at 06:19:49PM -0400, Noam Postavsky wrote: On Fri, May 25, 2012 at 11:38 AM, Daniel Veillard veill...@redhat.com  xmlXPathNewContext doesn't set the context node, it set it to NULL, if you keep it NULL all relative evaluations will fail (which sounds the right thing to

Re: [xml] relative xpath matches nodes anywhere in tree

2012-05-26 Thread Noam Postavsky
On Sat, May 26, 2012 at 8:32 AM, Daniel Veillard veill...@redhat.com wrote: On Fri, May 25, 2012 at 06:19:49PM -0400, Noam Postavsky wrote: On Fri, May 25, 2012 at 11:38 AM, Daniel Veillard veill...@redhat.com  xmlXPathNewContext doesn't set the context node, it set it to NULL, if you keep