xml errors for validator (config file)

Hi Olivier,

A first step and a few questions for a config file for xml parsing  
coming from libxml2

There are basically two patterns in include/libxml/xmlerror.h

     XML_ERR_OK = 0,
     XML_ERR_INTERNAL_ERROR, /* 1 */

Regex matching them
	^(.*)=(.*),$
	^(.*),/\*(.*)\*/$
to replace by to make the validator format
	<msg $2>$1</msg>\n


I wonder if the next step would be to match those into some of the  
error messages found in parser.c such as

<msg 6>XML_ERR_INVALID_HEX_CHARREF</msg>

matching with lines 284-285 of parser.c

         case XML_ERR_INVALID_HEX_CHARREF:
             errmsg = "CharRef: invalid hexadecimal value\n";
-- 
Karl Dubost
Montréal, QC, Canada
http://twitter.com/karlpro

Received on Thursday, 5 February 2009 07:08:19 UTC