PHP SAX has no validation; it doesn't even check well-formedness. I assume that Java SAX is the same, but I don't know for a fact.
If you need XML validation then I suggest you install an XSLT processor, such as
Sablotron
But you would still need to write DTD/Schemas for them - unless I'm very much mistaken - without a DTD or Schema an XML doc can never be valid, because the validity of a document is a comparison with its definition.