Operations on Nodes

Hi,

I am trying to learn how to read XML files in Java. I find it really difficult to grasp the structure of the DOM and how to operate on Nodes. I have read tons of tutorials but most provide just the code with litte or no explanation what is happening.

Re: Operations on Nodes

I think that a problem is that your XML has many more nodes than you realize. Everything is a Node. To see what I mean, recurse through your XML file and have it print out all of its contents (though I didn't display attributes since your simple file doesn't have any: