xml and xsd

is there a way to validate an xml file using a xsd file in java 1.4.2 ?i see that 1.5 has some nice classes that make this task so easy, but i am forced to use java 1.4.2.anyone ?
[200 byte] By [asrfela] at [2007-10-3 2:34:39]
# 1
I'm sure I recall seeing this asked many times before on this forum. You might try typing the words "xml schema validation" into that nice "Search" box over there at the left.
DrClapa at 2007-7-14 19:33:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

i found some references and i actually found a page

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM8.html#wp76446

which i thought would help me.

i followed the instructions found there and everything seemed to work fine until i actually ran the program.

because i got a nasty error that i can't understand:

java.lang.IllegalArgumentException: No attributes are implemented

It occurs at the calling of

factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);

I think it is because i have Java 1.4.2 and there may not be a good version of JAXP, but how do i solve it ?

please help !

asrfela at 2007-7-14 19:33:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
JDK 1.4.2 has a bug, use JDK 5.0.
dvohra09a at 2007-7-14 19:33:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
Hi,we do have the same error appearing in our application. Can you tell me what kind of bug (bug ID, explaination) in 1.4.2 appears ?Thanks
schlabbeseichera at 2007-7-14 19:33:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...