Hi,
the restricting or bug that for Validator.validate(source) the source
parameter must be of
type DOMSource and SAXSource was fixed in 2003!
See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4945750
I use the following snippet in some projects:
validator.validate(new StreamSource(new St
On Tue, Jun 23, 2009 at 10:40 AM, Roman Kalukiewicz <
roman.kalukiew...@gmail.com> wrote:
> 2009/6/23 Claus Ibsen :
> > 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
> fast
2009/6/23 Claus Ibsen :
> 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
DOMSourc
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 wrote:
>
> Hi,
>
> i stupid question: why you must get t
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 i
Hi
I have created a ticket to track this one
https://issues.apache.org/activemq/browse/CAMEL-1743
And currently working on a fix.
On Tue, Jun 23, 2009 at 9:08 AM, Claus Ibsen wrote:
> Hi
> A workaround a you can say a solution is to convert the body to String
> before validating
>
> from("jett
Hi
A workaround a you can say a solution is to convert the body to String
before validating
from("jetty...")
.convertBodyTo(String.class)
.to("validatior:..");
On Mon, Jun 22, 2009 at 3:57 PM, SwenVogel wrote:
>
> Hi,
>
> i created the following simple route:
>
> from("jetty:http://loc
And we highly appreciate contributions :). If you want to have some
fun and try writing the unit test yourself that'd be awesome.
Cheers,
Hadrian
On Jun 22, 2009, at 11:36 AM, Claus Ibsen wrote:
Hi
This is a bug.
The InputStreamCache is not convertable to DOMSource as the validator
expect
Hi
This is a bug.
The InputStreamCache is not convertable to DOMSource as the validator
expects.
The other cache types looks okay at first glance.
Do you mind creating a ticket in JIRA and attach you xsd and the route you
use?
Then we can use that as a base for an unit test to implement a fix.