Brass,

One option that you might pursue is creating a simple Console application 
wrapper around the XmlReader class in the .NET class library.  This object is 
capable of validating an XML document or fragment against one or more schema 
URLs.  The documentation for this class contains several examples which could 
easily be adapted to your needs.  There are also examples in the File and 
Directory classes for recursing through a directory tree.

Granted, it's a bit more work, but with a few hours of programming, you could 
create a custom application that will recurse through a directory tree and 
perform the validation according to your specifications.

I'd also recommend looking at the Plossom command line toolkit--it makes quick 
work of adding command line options to utility console applications.

I've created a number of command line utilities to tackle similar tasks to what 
you describe.  Depending on the application, I've often found that it takes 
less time to write a custom utility using Plossum and the .NET class library 
than it does to fight with poorly designed or documented shareware.  You then 
have the option of customizing and optimizing to your specific needs.

If you're interested, let me know--I have some C# code snippets that might be 
useful.

One other option to consider is the Microsoft utility XmlDiffPatch.  I'm not 
sure if you can bend to do validation only, but it's powerful tool.

Ken Parrish
Gomez, Inc.

-----Original Message-----
From: Brass Tilde [mailto:brassti...@gmail.com] 
Sent: Monday, April 20, 2009 8:55 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] XML Validator

Depending on exactly what you mean by "validate a folder of xml
files", Saxon may fill the bill.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to