Re: error check in sample SAXWriter

2007-11-02 Thread Michael Glavassevich
Hi Thomas, The sample registers an ErrorHandler which prints every error reported to it to System.err; each line prefixed with "[Fatal Error]", "[Error]" or "[Warning]". If you grep for those you should catch every error / warning emitted by the parser. The regular output from the sample is writte

error check in sample SAXWriter

2007-11-01 Thread Thomas Porschberg
Hello Xercianer, I have to validate a XML file against a XSD and tried the java version of xerces for this task. I simply installed Xerces (2.8) and the sample-jar and called java sax.Writer -v -f -s foo.xml 1>/dev/null | grep Error I'm not interested in the output. Because I'm on Unix I redir