This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Prabhu, JDOM comes with a jdom.jar and xerces.jar files. Those are all you need to use if for parsing xml documents. If you have the source code and want to use the Build.bat/sh file to build the binaries again, its still ok. If you build the binaries, then it is better to have the new jdom1-b-4.jar (something by similar name) and the xerces.jar files in the CLASSPATH and remove any other xerces.jar or jdom.jar from the CLASSPATH. Also, some books have the following code: org.jdom.inpout. Builder builder = new org.jdom.input.DOMBuilder(); Document doc = builder.build(new File(args)); Now if you unarcheive the jdom.jar or look in the source files under org/jdom/input fodler there's no Builder.java nor does the declaration of DOMBuilder says that it extends Builder. Hence it might be good to use DOMBiulder builder = new DOMBuilder(). These are a couple of things that I experienced with Jdom. Do share ur exp. Hope this helps...
Joined: Oct 30, 2000
hi sameer, thanx for ur response,i cleared my problem,the problem was having one more xerces.jar.now its fine. i'll surely share my experience cheers, prabhu.