Hi, I think you can do it with camel validation component. You can find more information about how to use it here[1]
[1] http://camel.apache.org/validation.html Willem 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
