...when you are reading/displaying a xml file in a browser:

function loadXMLFromDOM2XMLString( xmlString, xmltag, currentChildNode ) {

var nodes = currentChildNode.childNodes;
var i = 0 ;...