camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: XML Validation throws NoXmlBodyValidationException
Date Tue, 23 Jun 2009 08:27:36 GMT
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.vogel@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message