On 2009-11-16, max muster <[email protected]> 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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Xmlunit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmlunit-general

Reply via email to