Hi @nto,
this is a simple question, which is actually not simple to answer. There are arguments for DOM and JDOM, depending which is your point of view.
Let me outline my view of things and I invite the others to add their experience to this:
Usage: In a Java world (which TaminoAPI4J is) JDOM is a lot easier to use, because you do not need to do so much indirections and typing (Checkout squirk’s posting). DOM really implements the specification and you need a lot of method calls and intermediate objects to get where you want to.
Reliability: Both objectmodels are sort of mature. However, the JDOM package is still called “Beta 8” (!) and nothing happened since this version came out for a long time. So my feeling is that the drive behind this development is gone. If you are happy with Beta 8, then this is not really a problem, but if you find a bug in JDOM Beta 8 (as we did recently), the chance to get a fixed version pretty soon are not very high. Now you always can take the source and fix it for yourself, but who wants to do that?
Performance: There is really no big difference between DOM and JDOM concerning speed and memory usage. Depending on the testscenario sometimes DOM is better other times JDOM is better. So here is no real argument for one or the other.
TaminoAPI4J: The API really does not care, which object model you use. The Handling on the API level (dealing with documents) is the same for both models.
Any other thoughts about this?
Cheers, Christian.
[This message was edited by Christian Gengenbach on 08 Jan 2003 at 16:45.]
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods