File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XML Document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Document" Watch "XML Document" New topic

XML Document

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

in java i found that , in java there are several ways to create xml document like using DOM,JDOM , SAX etc, and even use direct file system to create xml document. but wich is the way best and good to create document in professional, which one is the most appropriate ways is use to create xml document?

With Regards :-
Harmeet Singh
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Thats simple - "it depends"

It depends on where your content is coming from, how large the document is going to be, how it is going to be used, etc.

If you will browse through the various conversations on this forum you will see lots of different approaches to lots of different problems.

Conclusion - there is no single best way.

Ifteqar Ahmed
Ranch Hand

Joined: May 02, 2011
Posts: 85

Generally DOM Model is the Best way to create XML Documents.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 633
Best?! If only one can give an answer to a better understood object such as what is the best way to write a text file...
I agree. Here's the link:
subject: XML Document
It's not a secret anymore!