camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Validate Xml
Date Sat, 23 Jan 2010 03:18:49 GMT

I think you can do it with camel validation component.
You can find more information about how to use it here[1]



jpcook wrote:
> Hi,
> I noticed you had a validation component for validating xml against xsds.
> But I wondered if there was a nice way to test if the message body was well
> formed xml.
> I have a scenario where I am pulling a xml feed via http but when the feed
> is unavailable you get back an html page which I also retrieve successfully
> but want to test if it is valid/well formed xml before passing the message
> on. I could obviously do this quite easily with a processor or bean class by
> loading into a dom object but I wondered if there was something neat in
> Camel that would help.
> Thanks

View raw message