|
From: Stefan B. <bo...@ap...> - 2009-11-17 05:21:38
|
On 2009-11-16, max muster <beh...@go...> wrote: > How to validate a Word 2007 XML file against a Schema? > Is it possible to use XMLUnit to formulate a Testcase? Yes, it is, I'm just not sure whether you want to use the Java or the .NET version. For Java you'll find examples in the user guide: <http://xmlunit.sourceforge.net/userguide/html/ar01s04.html> For .NET you'd use the Validator class. If you feel bold you can try the (currently stuck) XMLUnit 2.0 codebase which already does validation in a very similar way on both platforms. See for example <http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/tests/net-core/validation/ValidatorTest.cs?view=log> for .NET Stefan |