Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30766

Re: Simplest (not fastest) Java XML API for small files?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Simplest (not fastest) Java XML API for small files?
Date Wed, 21 Jan 2015 10:06:28 -0500
Organization A noiseless patient Spider
Lines 40
Message-ID <m9ofe3$d4t$1@dont-email.me> (permalink)
References <m655s3$m2e$1@speranza.aioe.org> <m65aq6$9mf$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Wed, 21 Jan 2015 15:08:51 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="13469"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19plYMkLrfaR/mrrHP6EdEFKmogwXwXLzo="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0
In-Reply-To <m65aq6$9mf$1@dont-email.me>
Cancel-Lock sha1:c7p9ATi2mRzbWcXtKq7ZeSX82j8=
Xref csiph.com comp.lang.java.programmer:30766

Show key headers only | View raw


On 12/08/2014 06:03 PM, Jeff Higgins wrote:
> On 12/08/2014 04:38 PM, Qu0ll wrote:
>> I have to say I am a little overwhelmed with the number of different XML
>> APIs available for Java; some built-in to the Java platform and of
>> course multiple 3rd-party options.
>>
>> What I am trying to do now is find the simplest XML API that allows me
>> to load small XML documents, edit them (i.e. change a few attributes
>> etc.) and then save them again.  That's all.  The XML files are just
>> configuration files and will be no larger than a few KB at most.
>>
>> The key for me is simplicity of use of the API.  I have seen some APIs
>> where you have to go searching through nodes, sub-nodes and attributes
>> and ignoring nulls or irrelevant attributes etc. when what I really want
>> to be able to do is given node 'A', give me the value of attribute 'abc'
>> and then let me traverse the document down through the children of 'A'.
>> Then when I have finished, just save the whole XML document.
>>
>> Any suggestions?  I'd prefer to keep in the JDK if possible just to
>> avoid any further dependencies but that is not critical.
>>
> In the jdk what do you have dom, sax, stax, jaxb ???
> A search for java configuration file parser library brings up
> some stuff Commons Configuration among them.
> StAX seems simplest to me. Depends on what you want to do.
>
>
>
I just ran across this configuration management tool.
I think it looks very sensible.
I will attempt to replace configuration management
in a current project with this.

OWNER Java™ properties reinvented.
<http://owner.aeonbits.org/>
Get rid of the boilerplate code in properties based configuration.
Simple Powerful Flexible

I am not associated with the OWNER project.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Simplest (not fastest) Java XML API for small files? "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-12-09 08:38 +1100
  Re: Simplest (not fastest) Java XML API for small files? Jeff Higgins <jeff@invalid.invalid> - 2014-12-08 18:03 -0500
    Re: Simplest (not fastest) Java XML API for small files? Jeff Higgins <jeff@invalid.invalid> - 2015-01-21 10:06 -0500
  Re: Simplest (not fastest) Java XML API for small files? Arne Vajhøj <arne@vajhoej.dk> - 2014-12-08 18:12 -0500
  Re: Simplest (not fastest) Java XML API for small files? Aroh Sunday <asmelitus@gmail.com> - 2014-12-23 05:24 -0800
  Re: Simplest (not fastest) Java XML API for small files? kimball.robinson@gmail.com - 2015-01-22 09:10 -0800

csiph-web