I don't think that the standard SAX parser can validate a file against a schema. They can using DTD's but, I do not think against schemas. You can use the
MSV project to validate your documents though. I use it a lot in unit tests for XML validation.