XMLHttpRequest Demo

XML source has white space affecting parsing

Whitespace less example

var testBusDest = xmlDoc.getElementsByTagName("bus").item(0).childNodes[0].textContent