ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Pellow" <nick.pel...@mindmatics.de>
Subject AW: [PATCH] XMLValidate
Date Mon, 23 Sep 2002 16:22:34 GMT



> On Fri, 20 Sep 2002, Nick Pellow <nick.pellow@mindmatics.de> wrote:
> 
> > I also removed the use of Collection libraries.
> 
> Thank you, I've changed two lines to make it compile under JDK 1.1
> (addElement and elementAt instead of add/get).

cool.

> 
> > They will fail with crimson since it does not support schema
> > validation, is this OK?
> 
> Is there an easy way to determine whether the parser supports schema
> validation so we could set a property and in/exclude the test?

I don't think there is a nice way to do this since the parser is
loaded in the task, and not in the test. The XMLValidateTask will
throw a BuildException however when a feature is not supported by
a parser!

> If not, we could specifically check for Xerces (or AElfred?).

I think that is the best way to go, safest with Xerces. Probably best to
specifiy it in the test task as well so that the default is not used
by mistake. 

Nick



> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
> 
> 
> 

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message