Configuration: XML - Configuration Check?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Configuration: XML - Configuration Check?

Wolfgang 'Dreamguard' Nagele
Hello list,

Is there any possibility to do a check for requried elements, etc. in a
XMLConfiguration?

I was thinking about validation against a xml schema or so.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Configuration: XML - Configuration Check?

Oliver Heger
Wolfgang 'Dreamguard' Nagele wrote:
> Hello list,
>
> Is there any possibility to do a check for requried elements, etc. in a
> XMLConfiguration?
>
> I was thinking about validation against a xml schema or so.
>
> Thanks.
>
Validation is not yet supported. There is an open enhancement request in
bugzilla about this topic:

http://issues.apache.org/bugzilla/show_bug.cgi?id=31616

I think, this would be a nice addition.

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Configuration: XML - Configuration Check?

Wolfgang 'Dreamguard' Nagele
Hi there,

> I think, this would be a nice addition.
Thanks for the quick reply. Yes that would be a really nice feature. The
only way i see to handle this right now, is to do this via external libs
manually.

bye



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Configuration: XML - Configuration Check?

Oliver Heger-2
Wolfgang 'Dreamguard' Nagele wrote:

>Hi there,
>
>  
>
>>I think, this would be a nice addition.
>>    
>>
>Thanks for the quick reply. Yes that would be a really nice feature. The
>only way i see to handle this right now, is to do this via external libs
>manually.
>
>bye
>
>  
>
Wolfgang,

I added a method to XMLConfiguration (in SVN) that allows to set a
custom DocumentBuilder, which will be used to load configuration files.
You can now create a DocumentBuilder, configure it appropriately, e.g.
to support validation, and pass it to the setDocumentBuilder() method.
Is this useful for you?

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]