Issue : 1
Code change Request
getChildNodes() to getElementsByTagName()
Issue : 2
Code change Request
Add document.normalize()