I have a need for a fast XML validation tool for use mostly in a GNU 
Make-based build system.  StdInParse doesn't quite cut it.  For one thing, 
it doesn't return a non-zero return code on most errors!  Furthermore, it 
would be nice if it accepted its arguments like standard UNIX programs.  It 
would also be useful if it could accept one or more files, as arguments, 
rather than forcing an invocation per file and that the file be read through 
stdin.

I've written a simple program (I call it xml_checker), based on StdInParse.  
It has the features listed above, plus some additional goodies.  Would 
anyone be interested in considering my xml_checker for inclusion in the 
Xerces distribution (perhaps as a replacement for StdInParse)?  Though it's 
more useful than StdInParse, I think it still serves as a very simple 
example for using the SAX interface.

If there's an issue with its use of getopt(), for argument parsing, I'd be 
willing to consider duplicating this functionality.  In case you didn't 
know, the getopt() function, which I think isn't included in POSIX.1, is a 
command-line parser that can be used by applications that follow Utility 
Syntax Guidelines 3, 4, 5, 6, 7, 9 and 10 in the XBD specification.


Matt G.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to