[Solved] need very basic help with xml parsing in java
I've been looking for a couple of hours on the net and can't find an answer. Thought I'd ask you guys.
If I have a very basic .xml file with 2 fields containing only numbers in each.
Just for simplicities sake at the moment all I want to find out is how to read the 2 fields, convert them to Integers and then add them together as if they are 2 seperate integer values.
I can read the xml elements fine.
I'm assuming they're just strings at the moment, so I assumed I could just use Integer.parseInt
But it won't work. It compiles fine, but throws up an error when I try to output the integer values.
Does anyone know what I'm doing wrong?