The schema validation API is part of JAXP 1.3. You can download a version of JAXP 1.3 that works with JDK 1.4 here:
At least you can in theory. It's many years since I tried it, before the Oracle takeover, and it was awkward then, but it was not impossible.