java: April 2007 Archives
Let me start by saying..JAXP 1.3 rocks..why?
- It supports XPath (duh !!)
- Dom level 3
- And other stuff i am still to discover.
- go to jaxp.dev.java.net
- download jaxp installation class file which has been compiled for JDK 1.4
java -cp . JAXPR******- this gives u 5 jar files (dom.jar,sax.jar,xercesImpl.jar,xalan.jar(*sigh*),jaxp-api.jar)
- copy all jars in
<java_home>/jre/lib/endorsed folder. - tada !!
jaxp-api.jar should not be put in endorsed folder and should be put some where on the CLASSPATH. But as the JAXP 1.2 classes packaged with JDK 1.4 are part of rt.jar, these classes will take precedence when loading classes over any classes on the CLASSPATH. In order to avoid this, you need to have jaxp-api.jar also in the endorsed directory. As per the Endorsed Standards Override Mechanism classes specified in the endorsed directory are loaded before any internal class.
so there you have it..you are off you using jaxp 1.3.
I look forward to exploring more of this release.