On Tue, Jun 23, 2009 at 10:40 AM, Roman Kalukiewicz <
roman.kalukiew...@gmail.com> wrote:

> 2009/6/23 Claus Ibsen <claus.ib...@gmail.com>:
> > 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.
>
> I guess it could be, but according to [1] it has to be either
> DOMSource or SaxSource even if the signature says that it is generic
> Source. But you are right - SaxSource in majority of cases would be
> better.
>
> Roman
>
> [1]
> http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/Validator.html
>

Great finding Roman
Do you mind creating a ticket to change it to use SaxSource instead? And
take a stab at it.



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to