Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding object model

 
surya.raaj prakash
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Can you please explain to me what is difference between DOM and XOM?
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic