xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Nils Kilden-Pedersen <nilskp AT gmail.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Reading a config file
- Date: Fri, 20 Oct 2006 10:09:30 -0400
Nils Kilden-Pedersen wrote:
I would recommend standard DOM. It's much easier to code with than SAX and
is part of the standard JDK.
I don't really believe that. I find SAX a lot easier to use for many use cases than DOM. You just need to learn a couple of design patterns and data structures and SAX becomes really easy. The issue is that many programmers are much more comfortable with trees and iterators than stacks and observers; but I don;t think SAX is fundamentally more difficult than DOM; in fact quite the opposite. Even once you understand trees and iterators there's still a huge number of nasty problems in DOM to bite you whereas SAX is quite clean.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
-
[XOM-interest] Reading a config file,
Christian Vest Hansen, 10/20/2006
- Re: [XOM-interest] Reading a config file, Elliotte Harold, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Nils Kilden-Pedersen, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Elliotte Harold, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Nils Kilden-Pedersen, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Michael Kay, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
New, Cecil (GE Infra, US), 10/20/2006
- Re: [XOM-interest] Reading a config file, Wolfgang Hoschek, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Mustard, Sandy, 10/20/2006
- Re: [XOM-interest] Reading a config file, Christian Vest Hansen, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
New, Cecil (GE Infra, US), 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Michael Kay, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Nils Kilden-Pedersen, 10/20/2006
-
Re: [XOM-interest] Reading a config file,
Elliotte Harold, 10/20/2006
Archive powered by MHonArc 2.6.24.