Re: [xml] structured error from xmlXPathCompile

Daniel Veillard <veillard redhat com> writes:

On Sun, Nov 09, 2003 at 06:15:54PM +0100, Petr Pajas wrote:
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

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?

  Hum, prossible. If the information can be carried by xmlXPathEval()
then xmlXPathCompile() ought to provide them too.

Can you make a bugzilla entry where you list all the weirdness you found
in the new API, that would help.

Don't know of other oddities so far, but I'm just at the very
beginning of porting to the new API. I made an entry for this one,
though, before it gets out of my mind.

BTW, (unrelated) this patch for valid.c I posted few days ago maybe
got overlooked?


-- Petr

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