All pastes #18236 Raw Edit

Something

public text v1 · immutable
#18236 ·published 2005-07-21 16:41 UTC
rendered paste body

Content = new XML();
Content.load("text.xml");
Content.ignoreWhite = true;
Content.onLoad = function()
{
	var e = this.firstChild.firstChild.firstChild;
	while(e.hasChildNodes() != null)
	{
		Blurbs[Blurbs.length] = e.firstChild.nodeValue.toString();
		e = e.nextSibling;
	}
	
	e = this.firstChild.firstChild.nextSibling.firstChild;
	while(e.hasChildNodes() != null)
	{
		Pages[Pages.length] = new Array(e.firstChild.firstChild.nodeValue.toString().toUpperCase(), e.firstChild.nextSibling.firstChild.nodeValue.toString());
		e = e.nextSibling;
	}
	
	e = this.firstChild.firstChild.nextSibling.nextSibling.firstChild;
	while(e.hasChildNodes() != null)
	{
		KeyFacts[KeyFacts.length] = new Array(e.firstChild.firstChild.nodeValue.toString().toUpperCase(), e.firstChild.nextSibling.firstChild.nodeValue.toString());
		e = e.nextSibling;
	}
	
	Content = null;
}