This gets the storyline frame xml and parses it ready for use with other functions
function getCourseLayout(docName) {
{
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
} else {
xhttp = new ActiveXObject("Microsoft.XMLDOM");
}
xhttp.open("GET", docName, false);
xhttp.send();
return xhttp.responseXML;
}
}
xmlDoc = getCourseLayout("story_content/frame.xml");