Re: [xml] libxml vs relaxNG question : File name and line number.



Hi,

On Thu, 2006-01-05 at 23:38 +0100, cazic gmx net wrote:
Hi,

<jean-francois dupont-viel ericsson com>
Datum: Thu, 5 Jan 2006 14:24:21 -0500

Hi all,

Following a suggestion from Daniel, I`m posting my question to the
xmllist.  
Our application want to print parsing errors detected through RelaxNG into
syslog.
But the line number and file name are not given to the error callback. 
Any idea how to make that information showed ? Here`s the code that we are

[...]

We are missing a function to register a structured error handler during
parsing.

For the validation we
have:

http://www.xmlsoft.org/html/libxml-relaxng.html#xmlRelaxNGSetValidStructuredErrors

I'll add the missing function tomorrow, but this means that you
would need to use Libxml2 built from latest CVS sources to do
what you want.

You could as well try with:

http://www.xmlsoft.org/html/libxml-xmlerror.html#xmlSetStructuredErrorFunc

Regards,

Kasimier



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