Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Qu0ll" Newsgroups: comp.lang.java.programmer Subject: Simplest (not fastest) Java XML API for small files? Date: Tue, 9 Dec 2014 08:38:59 +1100 Organization: Aioe.org NNTP Server Lines: 27 Message-ID: NNTP-Posting-Host: cnUgraYpUwFZ7dIYXoY6dA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 Importance: Normal X-Priority: 3 X-MSMail-Priority: Normal Xref: csiph.com comp.lang.java.programmer:30513 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. -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]