[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Have JDOM / XOM / etc. failed? If so, why?

  • To: "Oleg A. Paraschenko" <olpa@x...>
  • Subject: Re: Have JDOM / XOM / etc. failed? If so, why?
  • From: "Andrew S. Townley" <andrew.townley@b...>
  • Date: Sat, 01 Apr 2006 07:46:52 +0100
  • Cc: xml-dev@l...
  • In-reply-to: <20060401064437.7834e45e.olpa@x...>
  • References: <BAY107-W3141174C75D52E999860B99D10@p...> <20060401064437.7834e45e.olpa@x...>

jdom xom

On Sat, 2006-04-01 at 03:44, Oleg A. Paraschenko wrote:
> Hello,
> 
> On Thu, 30 Mar 2006 10:36:12 -0800
> "Michael Champion" <michael.champion@h...> wrote:
> 
> ...
> >  
> > But if this is true, why have cleaner, programming language-friendly
> > alternatives failed to displace the dear old DOM as the dominant XML
> > programming model after all these years?
> 
> Being a mediocre Java coder, I wonder if the alternatives do really
> provide any benefits, comparing to the standard DOM with XPath support.
> I've looked at the home pages of JDOM, dom4j, XOM, and only XOM has
> description how it is different from other competitors. I don't believe
> the words "easy to use, intuitive, optimised, flexible, unique, open
> source": these words are everywhere.

Hi Oleg,

>From my own personal work in Java, I prefer JDOM over using plain DOM. 
I haven't used dom4j or XOM, but for what I was doing recently, SAX
filters for work on the entire document plus JDOM for retrieving
specific data either explicitly based on structure (I needed basically
all of the document, but not in the same case where I was using SAX) or
retrieval of a handful of values using XPath and namespaces.

As people have mentioned, it's designed to fit more easily into the
"natural" use of Java.  For that, I think it worked fine with minimal
lines of code for what I was doing.

The only compliant I had (and I haven't managed to write this up to the
list because I fixed it and then got side-tracked) was to do with the
design of the XMLOutputter for inheritance (or the lack of).  It's
probably fixed now, but I had to inject my own class into the JDOM
package structure to fix something with attribute normalization for C14N
as well as dealing with some whitespace/element expansion issues and
insistence on outputting the doctype with the trailing newline (always).

Other than this problem (which I was able to work around), I didn't
think it was awkward enough to go hunting for another API.  I had
previously looked at dom4j briefly, but decided (for reasons I don't
remember) to give JDOM a go.

All-in-all, a very scientific selection process, I assure you... ;)

ast
--
Join me in Dubrovnik, Croatia on May 8-10th when I will be speaking at
InfoSeCon 2006.  For more information, see www.infosecon.org.

***************************************************************************************************
The information in this email is confidential and may be legally privileged.  Access to this email by anyone other than the intended addressee is unauthorized.  If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful.  If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
***************************************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.