[xml] Error manipulation



Hi all.

I have an application which need to validate a configuration file upon a
relaxNG schema. 
Upon error detetction, I wwant to have file name and line number.

I really need to understand the difference between these 4 Error
manipulation functions :

xmlSetGenericErrorFunc
xmlRelaxNGSetParserErrors
xmlRelaxNGSetValidErrors
xmlRelaxNGSetValidStructuredErrors 

To I need all of them to do what I want ? 
Why a generic Error CB is called multiple time for one error message ?

Thanks

Jean-Francois

-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On Behalf Of
Rick Jones
Sent: Tuesday, February 28, 2006 8:01 PM
To: xml gnome org
Subject: [xml] gaak, Windows... even more newbie...

So, netperf4 has gotten to the point where I would like to start getting
  it ported to Windows, as has already been done with netperf2. 
Netperf2 though was completely self-contained and made no use of
threads.

I've followed some links for the WIN32 libxml stuff
(http://www.zlatkovic.com/libxml.en.html) and found comments like:

  All binaries which you can download from this site use the
  multithreaded dynamic C-runtime (msvcrt.dll). Every program you
compile
  using these binaries must use the same runtime. Unless you like your
  app crashing, set up your project to use msvcrt.dll. If you for some
  reason must use a different runtime, then you must get the source and
  compile libxml and friends yourself.

At present, netperf4 is all pthreads.  I figured there was going to be a
time when "something else" would have to happen for threading in
netperf4.  I suppose I could do wrappers for the multithreaded dynamic
C-runtime msvcrt.dll, but before I go down that path, if I convert 
netperf4 to use glib, will that accomplish the same task?    Is that 
what folks who want to run using libxml2 on both Unix/Linux and Windows
do?

I may want/need to go glib anyway because at some point netperf4 may go 
gtk+.

thanks,

rick jones
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/ xml gnome org
http://mail.gnome.org/mailman/listinfo/xml



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