I want to access the textContent property of an XML object in JavaScript. The root item has several children which also have some children themselves. To get the children on
Try getElementsByTagName('child1')[0].nodeValue
getElementsByTagName('child1')[0].nodeValue