Convert Element object to Int?

Kakabee

New Member
I came across phase in my code that I need to convert an \[code\]Element\[/code\] object into \[code\]int\[/code\] when I know that the \[code\]Element\[/code\] object holds an \[code\]int\[/code\]. But I can't seem to find a way to convert that into an \[code\]int\[/code\]. Here is the code:\[code\] // extract data from XML file NodeList roundNumber = element.getElementsByTagName("roundNumber"); Element line = (Element) roundNumber.item(0); // now convert "line" into an int \[/code\]How can I convert the \[code\]line\[/code\] \[code\]Element\[/code\] into an \[code\]int\[/code\] ?
 
Back
Top