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

Re: JAXP and Java XML APIs (was RE: difference bet. xercesand

  • From: Ronald Bourret <rpbourret@r...>
  • To: Xml-Dev <xml-dev@l...>
  • Date: Wed, 26 Sep 2001 23:06:14 -0700

java xml normalize
"Champion, Mike" wrote:
> I'd be very interested in hearing a more detailed explanation of the
> "difficulty in the DOM model".  (I'm hopelessly biased, having spent the
> last four years on the DOM WG -- but trying to be open minded!).

I'm a pretty simplistic user of the DOM, but the things that have caused
me to jump through the most hoops are as follows, in order of the amount
of work they have caused me. (My apologies if DOM 2 or 3 already solves
these -- I admit I haven't kept up with the specs.)

1) Lack of DTD info.

2) Lack of normalization. A normalize function that just slaps text
nodes together is great for editors, but useless for data-centric people
like me. I want a way to normalize everything (text, cdata, entity
references, etc.) so all that's left are element, attribute, and text
nodes.

3) Lack of serialization/printing. (Solved in DOM 3, if I remember
correctly.)

4) Lack of a way to create an empty document. (Solved in DOM 2 or 3?)

5) Lack of a way to create new entities. This is very useful if I want
to create unparsed entities as a way to return BLOBs from a database.
Solved in the new DTD stuff, perhaps?

But none of this is worth several months worth of effort. As I recall,
(1) took several weeks of work spread out over a year, (2) was annoying
and took about a week in the midst of learning Java, XML, and the DOM,
(3) and (4) weren't hard and took about a day each, and (5) I still
don't have a solution for. 

-- Ron

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.