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 Regarding object model 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 "Regarding object model" Watch "Regarding object model" New topic

Regarding object model

surya.raaj prakash
Ranch Hand

Joined: Oct 30, 2009
Posts: 76
Hi Friends,

Can you please explain to me what is difference between DOM and XOM?
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Well, the difference is that one's name starts with "D" and the other's name starts with "X". But there are actually other differences. Let's see... they were written by different people... they have different class and method names... I'm sure I could go on but I don't see the point. What exactly are you looking for as an answer for this question?
Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
XOM -like dom4j and JDOM- is a Java-only XML object model, whereas DOM was designed to be used with various languages. That makes DOM less of a natural fit for Java, and more awkward to use than it should be in some circumstances, because it doesn't use Java-specific language features that are not available in other languages. It's more of a personal preference which one to use.
I agree. Here's the link:
subject: Regarding object model
It's not a secret anymore!