kneeboarder
Programmer
If I'm looping through the xml and using getElementsByTagName -
is there a way of checking whether that node exists?
This errors if the field is empty or the field doesn't exist at all so I want to test first before trying to get the actual value.
Code:
x[i].getElementsByTagName("fieldname")[0].childNodes[0].nodeValue
is there a way of checking whether that node exists?
This errors if the field is empty or the field doesn't exist at all so I want to test first before trying to get the actual value.