Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Reading a config file

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Nils Kilden-Pedersen" <nilskp AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Reading a config file
  • Date: Fri, 20 Oct 2006 09:03:49 -0500

I would recommend standard DOM. It's much easier to code with than SAX and
is part of the standard JDK. It is a pig with memory, but that should be
irrelevant, since 1. It's a small file, 2. It's a config file, which
presumably means that it'll only be read once per application startup.

Nils

On 10/20/06, Christian Vest Hansen <karmazilla AT gmail.com> wrote:

Hi all!

This is not a specific XOM related question, but does involve the
Java+XML combo.

I have this configuration file, that is a very simple, human-readable
XML file, and I work on an application that needs to read this file
(obviously).

With consideration to the simplicity of the file, I'm confident that I
can pick it up and read the info I need in just about any Java XML
framework out there, however, I would like to do this with the fewest
possible dependancies, and lowest possible memory overhead.
Not because I think memory shortage will be a serious issue, but
because I feel in my gut that it'll be wasteful and overkill to use
something like XOM for such a small file.
Appart from this configuration file, the application does not, and has
no need, to work with XML data.

So, what would a smart guy do in this instance? :-)

Thanks,
Christian.

--
"All good software releases were accidents corrected in the next version."
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest





Archive powered by MHonArc 2.6.24.

Top of Page