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!
All of the code follows the video to improve the learning process.
If you like videos like this, please tell Google [googleplusone]
Sharing is always appreciated [nttfblike]
Code from the Video
Hi,
Very, very nice Tutorial. I did not know anything of that. But now I can write and read XML easily.
One simple Question: When I want to write for example the country more than once (with different content), do I have to define a new Element or could I use the created one?
answer at mail please π
Best regards,
Joel
You’re very welcome π You don’t need to create a separate element, but instead use the one that is already there. Experiment a bit and you’ll really get the concept
Hi Derek, how it’s different from dom parsing ?? I feel there is no difference then why jdom ?? Can you throw some light on this ?
I’m going to cover the web aspects of Java very soon. Sorry I can’t make the videos any quicker
Hi Derek, this is an off-topic question, but still I want to ask. In your videos I see how quickly you type/replace/fill in some things, I do know about ctrl+space combination, but do you use any other tricks? Or it is just you so dexterous ? π And what do you think of making tutorial on that, if there’s any trick of course?
Here are all the Eclipse shortcut keys I use. Since you asked I figured I’d deliver. Thank you for the request π