[xml] structured error from xmlXPathCompile



Hi Daniel, All,

In 2.6.2, xmlXPathCompile(comp) doesn't provide exact position of
compilation failure neither to fprintf nor to a structured handler.
Used to work with 2.5.x:
XPath error : Invalid expression
foo::bar
   ^

On the other hand, I can get full info with xmlXPathEvalExpr() or
xmlXPathEval(). In 2.5.x, all these functions used to produce same
error message. Is it a bug in xmlXPathCompile?

Here is a dump of xmlError structures I get:
xmlXPathEvalExpr() or xmlXPathEval():

domain: 12
code: 1207
message: Invalid expression\n
level: ERROR
file:
line: 0
str1: foo::bar
str2:
str3:
int1: 4
int2: 0
ctxt: 0
node: 0

with xmlXPathCompile, I only get:

domain: 12
code: 1207
message: Invalid expression\n
level: ERROR
file:
line: 0
str1:
str2:
str3:
int1: 0
int2: 0
ctxt: 0
node: 0

Thanks,

-- Petr




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]