//コンストラクタ
//datainfo
function StadiumData() {
    this.listCount;
    this.content;
    
    this.init = function(xml) {
        this.listCount = 0;
        this.content = new Array();
        
        var obj = xml.getElementsByTagName("datainfo");
        this.listCount = obj.length;
        
        for (i = 0; i < this.listCount; i++) {
            this.content[i] = "";
            
            for (j = 0; j < obj[i].childNodes.length; j++) {
                var child = obj[i].childNodes[j];
                if (child.tagName == "event") {
                    if (child.firstChild) {
                        this.content[i] = child.firstChild.nodeValue;
                    }
                }
            }//for 
            
        }//for
        
    }//init
    
    this.getListCount = function() {
        return this.listCount;
    }
    
    this.getContent = function() {
        return this.content;
    }
    
}
