On 2010-03-25, James Sewell <[email protected]> wrote:
> After a bit of playing I got it to work with JAXP 1.4!
Great
> SchemaFactory factory =
> SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
> Schema schema = factory.newSchema();
> Source ss = new StreamSource(inputstream, uri);
> Validator v = schema.newValidator();
> v.validate(ss);
this should be equivalent to XMLUnit's JAXP 1.3 validation with
Validator v = new Validator();
StreamSource is = new StreamSource(inputstream, uri);
boolean isValid = v.isInstanceValid(is);
if not, we should try to figure out why.
Stefan
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Xmlunit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmlunit-general