Re: [xml] Structured error handling patch



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

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))
{
      printf("%s",xmlGetLastError()->message);
}


  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

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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