For another question I have created some XML related code that works on my development machine but not on viper codepad where I tested it before adding it to my answer.
I could find the following bug-report which looks like the issue: Bug 363252 - proximity position in libxml2's xmlXPathEvalExpression() reported 18 Oct 2006 and confirmed dating back since May 2006 which is before the 2.6.26 version in question.