I have a root then a parent element and then child nodes in my XML file. How do I include the parent element in this javascript so that it will loop through all the parents?<BR><BR>root<BR> parent<BR> child<BR> child <BR>____________________________<BR><BR>function start()<BR> {<BR> rootElem = xmlDoc.documentElement;<BR> todata.innerText = rootElem.childNodes.item(1).text;<BR> fromdata.innerText=rootElem.childNodes.item(2).tex t;<BR> ccdata.innerText=rootElem.childNodes.item(3).text; <BR> subjectdata.innerText=rootElem.childNodes.item(4). text;<BR> bodydata.innerText=rootElem.childNodes.item(5).tex t;<BR> }