Hi Satoru,

thanks fort he information. Validation seems not to be strictly necessary
(there are lots of higher level checks needed in any way). But it is good to
known and I find  [2] quite interesting.

All: I have checked some more of the features I need. 

There is the $IncludeConfig functionality. After reading up on XML, I thought
to implement it via Xinclude, probably together with a custom URL handler. I
think if I can not do it via Xinclude, I probably need to add a preprocessing
stage that merges the config files.

As far as I could see, expat does not support Xinclude while libxml does. I
also find it interesting that James Clark says that libxml2 is available on
"every modern Linux distro".

Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Satoru SATOH
> Sent: Tuesday, June 22, 2010 8:35 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] any concerns about libxml
> 
> 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
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to