Hi I think the ValidatingProcessor was created like this using DOMSource and DOMResult.
I wonder if it can use SaxSource and SaxResult instead, in case its faster and uses less CPU resources. On Tue, Jun 23, 2009 at 10:12 AM, SwenVogel <swen.vo...@ypsystems.de> wrote: > > Hi, > > i stupid question: why you must get the body as DOMSource for validating in > ValidationProcessor? > > It would also possibly to use the body as String for example: > > Source source = new StreamSource( > new StringReader( > exchange.getIn().getBody(String.class))); > > > > -- > View this message in context: > http://www.nabble.com/XML-Validation-throws-NoXmlBodyValidationException-tp24147734p24161746.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus