After looping through the XML tree we look for the root node, which is flashkit and then we assign the XML file content to the variable flashkitContent.
if (this.childNodes[count01].nodeName.toLowerCase() == "flashkit") {
flashkitContent = this.childNodes[count01];
}
}
//here the XML file content is carried over to the next function
findUrl(flashkitContent);
}