New to XML+Java: which is the best API?

Hi,
I am new to XML+Java and I am trying to develop an application that will both read and write to an XML file. After reading some tutorials, I decided that jaxp, sax, and org.w3c.dom.* are rather low-level and very unfriendly.
After a cursory web search, I came to the conclusion (please correct me if I am wrong) that JDOM and DOM4J are the most easy-to-use free APIs. So I would like to ask which one of the two (or any other API) is the "best"? With "best" I mean larger user base, better documentation, more features, less bugs, active development community (i.e. if a bug gets discovered, it will be fixed). I don't want to start building my application, just to realise 6 months later that the API I've chosen is very limited.
Your experience is much appreciated. Thanks for taking the time to reply.

Thanks guys. It seems that there is no clear answer as to which one should I use.
I will start using dom4j because it has more convenience methods and it heavily uses JCF, which I am very comfortable with. Although it seems that the learning curve is steeper (more complicated API) it is probably worth the effort.
Thanks again for your responses.

Similar Messages

  • Which is the best API for creating restful web services.

    Hi guys,
    I have tried a lot of apis to create a restful web service. But none of them has perfect documentation or examples. Which is the best one that has good support and future.

    "Best" automatically implies opinions and speculation; one I personally believe has a bright future is Jersey. Jersey is the reference implementation (RI) for [JSR-311|http://jcp.org/en/jsr/detail?id=311] ("The Java API for RESTful Web Services" or JAX-RS).

  • Which is the best java /j2ee framework

    Hi all
    Anyone can tell me which framework is the best java/j2ee framework? and Which framework is the best implementation of the core j2ee pattern?
    Thanks

    thanks for the support.
    now on to the other correct answers for this thread:
    which is the best IDE: the one in March
    which is the best TV show: Welcome Back Kotter
    radio show: none, that's why t.v. was invented
    song of all time: 'Afternoon Delight' by Starland
    Vocal Band
    dlgrasseNow here I would disagree
    which is the best TV show: Everybody loves Raymond
    radio show: none, Howard Stern
    song of all time: Hotel California
    &#9824

  • Which is the best free Java Obfuscator?

    Hello,
    I am planning to deploy my application using Java Webstart and to protect my code from reverse engineering wondered - which is the best free Java Obfuscator?
    thanks,
    Anil

    Herko,
    Thanks for your insight. With your explanation, I have more respect for your approach. I am a (struggling) one-man startup trying to get this thing off the ground. Yes, my idea can be learned by seeing it in action. That is why, advisors have told me to yank the demo from the web site (http://juwo.com)
    I would hate to see someone else steal what I have done with a lot of trouble and even worse, use my own source code to do so. In short, I dont want to be a fool.
    thanks,
    Anil
    I know the Proguard product, as well as several other
    obfuscation tools. I know obfuscated stacktraces can
    be reversed (as long as you go through the extra
    trouble of maintaining the obfuscation mappings for
    each version of the software you release). That was
    not my point.
    I work for (and am part owner of) a small software
    development company. We have invested 9 years into
    writing enterprise-quality software that is provided
    to customers all over the world. We used to think we
    needed to obfuscate our software too. However, we
    have found that the source code is by far the
    least important aspect of what we do as far as
    most of the outside world is concerned. Which
    is why we have been developing a major part of our
    software as Open Source since 1999. Which is why we
    have switched completely to an Open Source strategy
    earlier this year. That's right: all of our code is
    (or soon will be) freely available to anyone,
    anywhere.
    We have learned over the years that the most
    important aspect of our work is not the code, but the
    idea behind it. Obviously, this idea can not be
    obfuscated without defeating the entire purpose of
    the software. This means others are able to learn
    about the idea just by seeing the software in action.
    That alone enables them to implement that same idea.
    The fact that they might use our source code to do it
    is largely irrelevant.
    Going one step further, the most important aspect of
    our work is actually the way we - the people who
    made the software - use that idea solve the real
    problems of our customers. It is that knowledge our
    customers ultimately pay for, not the code.
    With very, very few exceptions the basic idea of your
    code will not be unique on a global market like the
    Internet: sooner or later (and from our experience,
    it's always sooner) someone will have the same idea.
    Their implementation of that idea might be better
    than yours, or it might be worse. What ultimately
    matters, though, is wether or not you are able to
    convince customers that the idea itself is sound.
    Customers buy solutions, not code.

  • Which is the best antivirus and spyware for Mac?

    Good morning,
    Because of schoolwork and extracurricular activities, I am constantly sending and receiving e-mails and messages to and from PCs and other Apple devices, like IPads. Two years ago I purchased a 120,12GB MacBook Air and, until a few months ago, it went perfectly well.
    I am not sure what happened, but lately, every time I go online, whatever I click -whether it is a random letter in a website, or a blank space in a page, anything- an advert appears or a new -unwanted- tab opens with publicity and such, the kind of additional tabs that open when you are watching movies online in a random website, but this time, it is happening with every website (even the Apple site) and almost constantly. I suspect it is something I downloaded or maybe something I received from an infected PC that I got a virus or problem from.
    I tried using the MacKeeper software, but it is not working for me (?). Also I tried blocking pop-ups (I use Google Chrome), Java Script, automatic downloads, complements and everything I could when going online, but it has not gotten better over the last 9 months. My parents also recommended me a very good technician, who I personally know and has solved many of my previous problems, but he could not help me, in this situation.
    For that reason, I have been considering either purchasing a good antivirus for my Mac or a new Mac and an antivirus for it, to prevent future problems like this one.
    Either way, the question is the same,
    Which is the best antivirus and spyware software for Mac?
    Thank you so much for your attention.

    Please get rid of MacKeeper, as it and most other such junk software will do more harm than good.
    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • Which is the best way to create a connection object

    hi,
    Eventhough i am not new to java I just wanted to know that which is the best way for creating sql connection object.
    Is it using the DriverManager.getConnection(..,..,..) or using a datasource and getting the connection.
    Which is more efficient or Is there any other way to create sql connection which is even more better.
    thanks in advance.
    pradeepbhargav

    AFAIK all connections, DataSource ones included are created by calling the DriverManager. A DataSource is a factory for Connection objects (from JavaDocs)
    If you're talking about managing connections then it depends on the application. A DataSource is great for apps that can support many clients or are multi-threaded, but may require a JNDI implementation to get to it.
    If however you have an single threaded app that hits the database in a serial fashion, then DataSource is probably an overkill.
    Dave

  • Which is the best operating system to update my MacBook Air?

    I've just invested in a brand new MacBook Air, and I'm wanting to get the best out of it, so is it worth updating my OS? and if so which is the best to buy? Thanks

    Apple products always come with the latest. Just set up yopur system, and the run software updates to get any late changes from Apple. iLife 2011 is also included with your MBA. If the question you are actually asking has to do with other software versus OS, that is a much bigger question, and would be dependent on what you intend to do with the system.
    On January 6th, the Mac App Store will go live, and make it very easy to find and load software.

  • Which is the Best

    Hi, every body
    I just want to purchase a new nokia hs. but little confused.
    I am in India and belong the same. N73 looks nice and N95 also( little costly also). but stil even in other than N series hell of confusion.
    Can anybody help me. pl. guide me which is the best and which hs I should go for. Though I am using Nokia 6681 a very good hs very appreciating but I want to give it to my bro.
    Deep

    I say N95-2..but still we are here just to give you advice.
    The changes compared to the regular N95 are:
    * 8 GB internal flash memory, up from 128 MB.
    * Larger display (2.8", up from 2.6"), same pixel count (320x240), lower resolution (142dpi vs 153dpi).
    * MicroSD slot removed
    * Demand paging (although the N95 supports this too, since firmware version 20.0.015[17])
    * 128 MB RAM, up from 64 MB
    * 1200 mAh battery, up from 950 mAh
    * Slider protecting camera lens removed to make room for the larger battery
    * Landscape mode for N-Gage (Next Gen) games
    * Cosmetic changes to media and front-panel buttons
    * New model of handsfree/remote control, AD-54[18] (as opposed to AD-43[19] for previous N95 versions)
    * New multimedia menu, with Nokia's Ovi content integration
    * Removal of built-in video editor
    * Mass: 128g, up from 120g

  • Which is the best DVD RW?

    Hello,
    I am planning of buying a dvd rw and I don't know which is the best right now. I am planning of spending about 100 - 150 dollars. I am going to place the Dvd Rw into an ide that supports Ultra DMA mode 1 so I don't actually want the best one, I just want one thats going to get my job done. Can anyone give me any clues about what is the best option for me? Can you please give me any details?
    Thanks,
    PhanosP

    Hi PhanosP
    1) ""First I am concerned about the ability of any DVD drive to play all the regions. Is this drive able to play both region 1 and region 2 or it has to be patch.""
    As far as I know, all drives manufactured over the last couple of years use region settings.
    The free software program DVD Genie may fix this, so you can play DVD's from another region. For this and other progs, please see http://www.doom9.org/   There you may find loyes of info on this topic and anything you mighty want to know about burning DVD's
    Please also read other topics in this forum like:
    "" RegionfreeDR4-A"" or
    "" MSI DR4-A Region locked""
    If you want the region setting removed entirely from your drive, indeed you will need a patch (probably a patched firmware update). I myself don't know where you might find this, so you might need to browse the internet. (Maybe  also somewhere on the http://www.doom9.org/  site. Or perhaps another forum visitor may know the answer. I myself did not bother searching yet, as I never encountered problems reading DVD's sofar.
    Furthermore: Also some (freeware) programs (like DVDdecrypter) used for decrypting DVD's >You need them if you want to rip/ copy copyrightprotected DVD's
    2)
    ""Secondly the reviews are almost 3 moths old. Aren't any newer reviews with some newer drives like the one you are using.
    You'll have to browse the internet to find newer reviews. Unfortunately not much reviews are as good as the ones on Tom's site. Because Tom's cover so many products and produce so many articles, they only make reviews of DVD burners from time to time. I did not see a good review of recent drives yet. If you find one, please tell me! I'm also very curious about the review on my MSI DR4-A drive, as it pleases me okay.
    Good luck !
    Sjaak
    Kind regards,
    Sjaak

  • Which is the best iOS for iPhone 3G? I am currently on 3.1.3 !

    Which is the best iOS for iPhone 3G?
    Should i update it to the latest 4.2.1 or let it be on my current firmware 3.1.3?
    I have heard that 3G is best on 3.1.3?
    Comment?

    If I may, I agree that version 3.1.3 is the best for the iPhone 3G, however, I am currently travelling in Europe and I have a SIM card from a local mobile company. I discovered the hard way that there is an option missing: Settings > General > Network > Cellular Data (on/off). This option is not present in iOS 3.1.3. So basically, you disable 3G but it is impossible to block EDGE, and your phone will automatically revert to it if 3G is not available, and you will occur cellular data fees anyway.
    I am sure of what I am saying because with the local service I use, I have unlimited data for $4 per day, but it is debited as soon as I consume one byte of data, then it is free until midnight the same day. Event if I have set Enable 3G = off, Data Roaming = off, for two days in a row, I was still charged the $4 a day because the Cellular Data was not off!
    I compared with my wife's iPhone 3GS with iOS 5.1, there is the three options, Enable 3G (on/off), Data Roaming (on/off), Cellular Data (on/off). The option to turn it off simply doesn't exists on iOS 3.1.3!
    With some research, I found that it is possible to block it anyway if you change your APN (Access Point Name) to an invalid setting. The easiest way to do this is to connect to the Internet using WiFi, then access this web site with Safari: http://unlockit.co.nz/ (from your iPhone).
    This online tool allows you to change your APN, it is very useful when you travel abroad and you use local SIMs. On the first screen press Continue, on the second screen press Custom APN to create an APN for a local mobile company, or press Disable Data (FakeAPN) to disable 3G and Edge for good. When creating a Custom APN, you will be asked to choose a Country and a Provider, then press Create Profile. Then, either way, press Install and "Install Now" or "Replace", then press Done. This will add two things to your phone: first, an app-like icon for quick access to the website http://unlockit.co.nz/, second, a new menu in Settings > General, labelled "Profile", that contains your new APN. Note that it is possible to add several profile information, and some may conflict with each other. Remove those you don't need. Don't remove them if you are not sure!
    I hope this works for you!

  • Procedure for BI System copy (ABAP+JAVA) what is the best ?

    Hello to all !
    First time is my that work with BI.
    In my company desired to refresh the data of production of BI, in the system test de BI.
    The instance is Abap + Java. The database is too large.
    I have a question which is the best procedure to refresh my system of Quality of BI with the data of BI production?
    I appreciate the help me.
    Thanks a lot.
    Desiré

    Hi Dcardena,
    Check out this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200ebc93-dabe-2910-c1a6-c4ec30b20e04
    Raja

  • Which is the best user-friendly IDE for swing program development

    Which is the best user-friendly IDE for swing program development

    I have seen Sun's Forte and IBM's Visual Age for Java.
    But Borland's JBulider 7 Personal Edition is far more superior than any of these.Borland's JBuilder is the Best.
    Ranga.

  • Which is the best headphone/earphone to be used wi...

    Hi Guys,
    Please suggest which would be the best headphone/earphone to be used with nokia pureview 808.
    i am basically concerned with the sound quality of the headphone.
    i want to hear each and  every detail of the song played by the music player.
    Will klipsch s4i ii/s4A ii would be compatible with 808 pureview? Kindly suggest the other options also.

    which is the best data structure to be used in Thread
    pool to store the thread instances? and why ?
    I have seen lots of people using Queue....Why do you ask? You do know that there are thread pool classes in Java 5?
    Kaj

  • Which is the best way for a called function to identify caller class name.

    Which is the best way for a called function to identify the caller class name .
    1)Using sun.reflect.Reflection from called function
                    Class caller = Reflection.getCallerClass(2);
                    System.out.println("Caller Class Name ::"+caller.getName());2) Analyzing current threads stack trace from called function
                    StackTraceElement[] stElements=Thread.currentThread().getStackTrace();
                    System.out.println("Caller Class Name ::"+stElements[3].getClassName());Is there any alternate ways to achieve the same .Which is the best way ?
    Called function doesn’t have any arguments, I don’t want t pass any arguments from caller function to called function.
    Plz help.
    With kind regards
    Paul

    798185 wrote:
    Which is the best way for a called function to identify the caller class name .
    Is there any alternate ways to achieve the same.SecurityManager
        // 0 is the anonymous SecurityManager class
        // 1 is this class (also works in static context)
        // 2 is calling class
        static Class getClass(int i) {
            return new SecurityManager() {
                protected Class[] getClassContext() {
                    return super.getClassContext();
            }.getClassContext();

  • Which is the best way for creating video placeholders in AE?

    I should create some video placeholder for AE animation, but I am not sure which is the best approach to do that.
    I found some tutorials on the web where is explained how to create basic placeholders in AE, but I want to do something better.
    Could I create some placeholder even in Photoshop? And after that to import this psd files into AE.
    I saw some intersting placeholders on Videohive but I don't know how to create something similar?
    Any help?
    Regards!

    Any layer may be replaced with new footage by simply selecting the layer you want to replace in the composition, then selecting the new footage in the project panel, then holding down the Alt/Option key and dragging the new footage to the composition.
    If you want to automate the process of replacing footage you'll have to use a script.
    If you want to use a project as a template then simply copy the template file in it's folder and paste it into a folder that contains the same structure as the template. IOW, the folders should look like this:
    Template Project
         >template.aep
         >Footage
    New project
         >copiedtemplate.aep
         >Footage
    Your footage has to have the same filename as the original template project.
    You can also save an AE project as a template (aet) project. That's what they are doing on siges like Video Hive. The template isn't easily overwritten so it maintains the work. Then you simply add your footage using the first technique that I talked about.

Maybe you are looking for

  • Purchased song but player won't play it

    Hello everyone, i purchased a song on the i-tunes store. My problem now, my player wont play it, i also transferred it onto my i phone- same problem....????HELP please!

  • IWEB Features you would like to see added

    Hi I have posted this here to see what users would like from iweb. I hope to compile the list and send it as a suggestion to Apple. It would be good to have one central location for all requests. I don't know if iweb can support some of these request

  • IPad 2 won't shut down

    Hello, Since a little time my iPad won't shut down using the red slider. The circle is rolling and rolling. A reset with both buttons does the job but it's not ideal (loading time is longer). Thanks

  • Why do I get a blue screen using USB communication?

    Hello, My problem is that sometimes I get a blue screen using USB communication. I guess that most of the time the problem is an overflow in memory, so I read all the data that is on the port with which I communicate. I read two ports so there are tw

  • Gettin variable amount have not been initialised error new to java help plz

    hey guys im doin this as an hw assignment for class keep gettin error Variable amount has not been initialised can some please tell me wut my error is n wut is wrong with my code please thankyou: /*Objective import javax.swing.JOptionPane; public cla