I have the following XML :
<beanRepresentation>
<beanRepId>222</beanRepId>
<beanRepName>Bean 1</beanRepName>
<topY>10</topY>
<leftX>10</leftX>
<height>10</height>
<width>10</width>
</beanRepresentation>
This line gets the value of the topY:
document.write(x[i].getElementsByTagName("topY")[0].childNodes[0].nodeValue);
This would give me a 10, but I want a 20, I tried to
document.write(x[i].getElementsByTagName("topY")[0].childNodes[0].nodeValue +10);
but it did not work, it gave me 1010 instead. what can do I do manipulate the number?