Re: [xml] Error Detetection



On Fri, Apr 21, 2006 at 01:05:40PM -0400, Jean-Francois Dupont-Viel (QC/EMC) wrote:
 
Hi !

Right now, while parsing nmy configuration ( and the validating it upon
a relaxNG schema file ) if an errors are detected, libxml stop at the
first one and logs it.

My question is this :

Is it possible for libxml to log all the possible errors at one shot
instead of one at a time ?

  At XML parsing time, it's the default behaviour. For Relax-NG validation,
sorry that's not possible, I would not know how to do it.
  Though libxml2 doesn't use the derivation algorithm suggested, you can
still read 
   http://www.thaiopensource.com/relaxng/derivative.html#Error_handling
for more informations on the topic, but it's rather hard to map onto
libxml2 own algorithm.

Daniel

-- 
Daniel Veillard      | Red Hat http://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]