W3C home > Mailing lists > Public > public-qa-dev@w3.org > February 2009

xml errors for validator (config file)

From: Karl Dubost <karl+w3c@la-grange.net>
Date: Thu, 5 Feb 2009 02:08:06 -0500
Message-Id: <83B8317D-992F-4D03-8614-56654A018E01@la-grange.net>
To: Olivier Théreaux <ot@w3.org>
Cc: "public-qa-dev@w3.org list" <public-qa-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 August 2010 18:12:49 GMT