Java Video Tutorial 46

Get Everything:

Today I introduce the easiest way to read and write to XML files using Java. It is call the JDOM2 library. With it you’ll easily read any element, or attribute and create your own.

I introduce 10 libraries and show you numerous methods that will make your life easier in just 14 minutes!






25 responses to “Java Video Tutorial 46”

  1. dani bilel Avatar

    how can i change attribute value later ?

  2. SC2GGRise Avatar

    I'm about 5 years late to ask a question – but I get the following error when trying to read:

    Exception in thread "main" java.lang.NullPointerException
    at CreateXML.readXML(
    at CreateXML.main(

    I'm not understanding what causes this

  3. Daniel Rodriguez Avatar

    I really like your videos and find them very useful, but i belive the use of zooming is most unnecesary in many cases.

  4. Naga Sekhar Avatar

    helo sir,my question is how can i store and change database values(DB name,username,password) in an xml file and change them using java program(i came to know it's a property file) how to create and use property file in eclipse.Is there any tutorial of you on it?

  5. Eduardo Salmeron Avatar

    Hi Derek, awesome video, it helps me a lot, I'm Studying Computers Engineering , I'm from Costa Rica, can you help with one thing, is just a question, can you set the attribute to a variable and used for other purposes?
    Thanks you!! 🙂

  6. Andrew Lytwyn Avatar

    Derek, you are awesome! I'm a Software Development Engineer in Test (SDET) for Freddie Mac, and I'm kind of the low man on the totem pole (lol). You have taught a lot of stuff I need to know quick for my job. You are awesome man! Thank you so much!

  7. An-gelo Edquila Avatar

    Hi Derek, I noticed that you gain 500+ subscribers a day. I'm so happy for you.
    btw this is the last tutorial i'll be watching for this series because i want to continue to web development. I'll watch your java algorithms tutorial after this. Hope to see your web development tutorial soon(I'm sure it's also gonna be great). Thank you for all your efforts and Godbless.

  8. Thony Dotoy Avatar

    Derek, you did some great work with your tutorials! You're an amazing teacher.
    I followed your java tutorials up until now, and I am looking forward to finish the playlist!
    I also prefer android programming over basic java programming on computers, that's the reason I started following the playlist (I'll still program on computers though).
    My question is: Am I ready to start your Android Studio playlist? (I'm still finishing this playlist)

    Keep up the good work!

    Greetings, from the Netherlands (I'm 15)

  9. Pro2leet Avatar

    is JDOM2  a third party library? 

  10. ghislainmj Avatar

    this is very nice. i like aaaaaaal of your tutorials

  11. led tecnichian Avatar

    Finally someone who understand that you need to make the font bigger for youtube videos.

  12. TheRoxas13th Avatar

    This JDOM made it lot easier to read and write the XML. Thanks sir Derek! Btw, i followed your Java video tutorial since lesson 1 up until now. Do you think i'm ready to tackle your Android tutorial? Just curious.

  13. Derek Banas Avatar

    Here you go ubuntuforums. org/showthread. php?t=1557597

  14. TheAnat001 Avatar

    I have a really crapy computer and I can't run eclipse on it, so I just compile the programs with a terminal. I will get a new compter soon, but even though, I would like to know how the libraries work before letting eclipse do the job for me, and I didn't find a single tutorial on the internet that didn't use eclipse.

  15. Derek Banas Avatar

    I'll see what I can do. What do you use?

  16. TheAnat001 Avatar

    Could you make a tutorial on how to install a librarie like JDom without eclipse, because some people don't use eclipse.

  17. Derek Banas Avatar

    You're very welcome 🙂 I wasn't insulted. It is just about impossible to insult me

  18. JurajIsamkral Avatar

    Its ok that was only joke. btw thanks you for tutorials.
    Greeting from Slovakia.

  19. Derek Banas Avatar

    I'm a real person. My voice gets wacky sometimes because of allergies

  20. JurajIsamkral Avatar

    narrator is computer? 🙂

  21. sandeep avula Avatar

    Top grade video tuts (Y)

  22. Derek Banas Avatar

    Thank you 🙂 I will be covering a ton of math problems in my android games tutorial

  23. Schniedelwutz Avatar

    Your tutorials are didactically great! 🙂 Other topics that might be interesting to cover in the future are basic image processing (e.g. linear filters), mathematical calculations (how to convert certain formulas from math and physics to Java), calculation precision etc. That's important because most problems in IT can be boiled down to some math stuff.

Leave a Reply

Your email address will not be published. Required fields are marked *