If you want to validate XML config files [1], expat may not be an
option.  Libxml2 supports validation of XML document with some schemas
including relax-ng [2] and it is much better than expat in this area.

Personally, I prefer to use libxml2 to parse, dump XML files and
validate these with relax-ng schema for most cases and may choose xqilla
if I need XQuery or XPath >= 2.0.


[1] This is one of the reasons to choose XML other than JSON / YAML, I
    guess.
    
    Also, writing relax-ng schema document is not difficult and it's
    also possible to use W3C XML schema datatypes to define custom
    complex data types.

[2] Libxml2 is listed in Software/validators in http://www.relaxng.org
    and James Clark (original author of expat) mentioned about its
    relax-ng support:
    http://lists.oasis-open.org/archives/relax-ng/200303/msg00013.html

- satoru

On Tue, Jun 22, 2010 at 02:43:16PM +0200, Rainer Gerhards wrote:
> As a question related to the config issue: does anyone have concerns about
> the libxml library? After what I have seen, it seems to be fairly portable,
> stand-alone and widely used. But I have zero experience selecting XML
> toolkits, thus I ask...
> 
> Rainer
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to