Re: [xml] Structured error handling patch

On Fri, Jan 02, 2004 at 08:07:22PM +0100, Stïphane Bidoul wrote:

I'd like to suggest a small patch to structured error handling.

The idea is to set xmlLastError even when __xmlRaiseError
has a parser context available.

Otherwise, you never get access to the error when doing things like:

if (NULL == xmlReadFile("doesNotExist.xml",NULL,0))

  yeah, I was really wondering about this, so I kept those separate
so far but your example is convincing, applied and commited !

Happy new year.

  Thanks, Happy new year and best wishes too !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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