From: Jeff M. <je...@mk...> - 2003-02-06 17:14:08
|
I've never used XSD so I'm not sure what should happen, but the validator calls the parse method on the xml parser. Xerces2 is supposed to support XSD validation and I assume that you just need to have a resolvable xmlns attribute in the root element and it should barf when you try an parse the file. Can you give us an example? On Thu, 2003-02-06 at 16:36, Bonnet Emmanuel wrote: > Hi All, > I have trouble using the XmlUnit Validator with a > Xml file that must be validated with a XSD. > I use the following code > > Validator validator = new Validator(new FileReader(file)); > this.assertTrue(validator.isValid()); > > > And file contains the full reference to its XSD. > Do you have any idea about that ? > > Regards, > Emmanuel > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Xmlunit-general mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlunit-general -- Jeff Martin <je...@mk...> |