Jim Anderson wrote:
I am using Xerces in a shell script (bash) on Linux and Mac OS X.
I want to detect if sax.Counter gets a parse error or a 'file not
found' error. First, I tried this:
java sax.Counter -v myfile.xml
echo $?
When I check the value of $? in the shell script, it always comes
back 0, so I cannot use the value to detect an error.
The Xerces samples aren't really meant to be used in production
systems. Even so, it probably would be worthwhile to have them
exit with meaningful status codes.
--
Andy Clark * [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]