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

Reply via email to