OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] JDOM vs. JAXP/Xerces for XML document creation

[ Lists Home | Date Index | Thread Index ]

> In practice JDOM code is *much* more 
> > portable across parsers than DOM implementations are. I have yet to 
> > be able to run a significant DOM program on two different DOM 
> > implementations (in Java) without debugging and rewriting 
> some code, 
> > even in those parts that are allegedly standard.
> Was it due to differences in interpretation of the 
> specifications, bugs in the implementations, or differences 
> between your interpretation and the implementation 
> interpretation? 

My experience of DOM is that there are lots of nasty subtle differences
between implementations, for example in the handling of namespaces, the
handling of entity references, and many other details. Usually when I go
and check the spec it doesn't tell me which behavior is right, at least
not without a week of study.

> > >- JDOM's architecture expolits the fact that there it 
> doesn't have to 
> > >worry about multiple implementations. 

Except that every version of JDOM has been incompatible with the one
that went before - something that is very much a characteristic of
software developed without the benefit of free-standing interface

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS