Re: [libvirt] [PATCH] Detailed XML errors when XML is not well-formed

2008-07-30 Thread Daniel Veillard
On Wed, Jul 30, 2008 at 03:57:57PM +0100, Daniel P. Berrange wrote: > On Wed, Jul 30, 2008 at 03:49:17PM +0100, Richard W.M. Jones wrote: > > This patch changes the implementations lots of functions which parse > > XML documents, so that if the XML document is not well-formed then we > > get detail

Re: [libvirt] [PATCH] Detailed XML errors when XML is not well-formed

2008-07-30 Thread Daniel P. Berrange
On Wed, Jul 30, 2008 at 03:49:17PM +0100, Richard W.M. Jones wrote: > This patch changes the implementations lots of functions which parse > XML documents, so that if the XML document is not well-formed then we > get detailed error messages. > > The general form of the change is: > > static v

[libvirt] [PATCH] Detailed XML errors when XML is not well-formed

2008-07-30 Thread Richard W.M. Jones
This patch changes the implementations lots of functions which parse XML documents, so that if the XML document is not well-formed then we get detailed error messages. The general form of the change is: static void catchXMLError (void *ctx, const char *msg ATTRIBUTE_UNUSED, ...) {