File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes JDOM or JDK 1.4.2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM or JDK 1.4.2?" Watch "JDOM or JDK 1.4.2?" New topic
Author

JDOM or JDK 1.4.2?

Joseph Zhou
Ranch Hand

Joined: Aug 01, 2000
Posts: 129
I Tried the toString() in a Document object, it print out [#document: null].
Actually I built the Document object based on a simple xml file. I cann't find the related java doc for the toString()(obviously, it is not the Object's toString()).
My question is: when I want to do some DOM job, which one is better: JDOM or the stuff in JDK?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I Tried the toString() in a Document object, it print out [#document: null].
See DocumentToString in our wiki.
My question is: when I want to do some DOM job, which one is better: JDOM or the stuff in JDK?
JDOM is often easier to use, but DOM is standard. These are the main trade-offs.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDOM or JDK 1.4.2?
 
Similar Threads
JDOM adding new elements to existing XML documents
Document Object
Is JDOM superior to JAXP ?
How to validate XML against XSD in Java
generating XML using servlets/jsp