function KankoContentsData() {
	this.listCount = 0;
	this.provider = 0;
	this.serial = 0;
	this.city = "";
	this.cityName = "";
	this.name = "";
	this.kana = "";
	this.modified = "";
	this.bf = "";
	this.category = "";
	this.categoryName = "";
	this.subCategory = "";
	this.subCategoryName = "";
	this.subCategoryIcon = "";
	this.flagExcel = "";
	this.flagGis = "";
	this.flagDisplay = "";
	this.url = "";
	this.urlName = "";
	this.pointX = 0;
	this.pointY = 0;
	this.machikuruUrl = "";
	this.capsuleID = "";
	this.outline = "";
	this.basicalField = null;
	this.optionalField = null;
	this.bfData = null;
	this.init = function(xml) {
		this.listCount = xml.getElementsByTagName('datainfo').length;
		this.url = new Array();
		this.urlName = new Array();
		this.basicalField = new Array();
		this.optionalField = new Array();
		this.bfData = new Array();
		
		var basicalCount = 0, optionalCount = 0, bfCount = 0;
		var dataList = xml.getElementsByTagName('datainfo');
		for (i = 0; i < this.listCount; i++) {
			this.provider = dataList[i].getAttribute('provider');
			this.serial = dataList[i].getAttribute('id');


			for (j = 0; j < dataList[i].childNodes.length; j++) {
				var child = dataList[i].childNodes[j];
				if (!child.tagName) {
					continue;
				}
				if (child.tagName == 'city') {
					if(child.firstChild) {
						this.city = child.getAttribute('id');
						this.cityName = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'name') {
					if(child.firstChild) {
						this.kana = child.getAttribute('kana');
						this.name = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'modified') {
					if(child.firstChild) {
						this.modified = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'bf') {
					if(child.firstChild) {
						this.bf = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'category') {
					if(child.firstChild) {
						this.category = child.getAttribute('id');
						this.categoryName = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'subcategory') {
					if(child.firstChild) {
						this.subCategory = child.getAttribute('id');
						this.subCategoryIcon = child.getAttribute('icon');
						this.subCategoryName = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'flagexcel') {
					if(child.firstChild) {
						this.flagExcel = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'flagdisplay') {
					if(child.firstChild) {
						this.flagDisplay = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'url') {
					if(child.firstChild) {
						var wk = child.firstChild.nodeValue;
						var index = this.url.length;
						this.url[index] = wk;
						this.urlName[index] = wk;
						var s = wk.indexOf('[');
						var e = wk.indexOf(']');
						// []で分解
						if (s >= 0 && e >= 0) {
							this.url[index] = wk.substring(e+1, wk.length);
							this.urlName[index] = wk.substring(s+1, e);
						}else{
							//名称が存在しない場合(080423 sai)
							this.urlName[index] = "";
						}
					}
				}
				if (child.tagName == 'point') {
					if(child.firstChild) {
						this.pointX = child.getAttribute('x');
						this.pointY = child.getAttribute('y');
						this.flagGis = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'machikuru') {
					this.capsuleID = "";
					this.machikuruUrl = "";
					if (child.getAttribute('id') != "0") {
						this.capsuleID = child.getAttribute('capsuleid');
						this.machikuruUrl = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'outline') {
					if(child.firstChild) {
						this.outline = child.firstChild.nodeValue;
					}
				}

				if (child.tagName == 'field_each') {
					if(child.firstChild) {
						this.optionalField[optionalCount] = new Array();
						this.optionalField[optionalCount][0] = child.getAttribute('type');
						this.optionalField[optionalCount][1] = child.getAttribute('label');
						this.optionalField[optionalCount][2] = child.firstChild.nodeValue;
						optionalCount++;
					}
				}

				if (child.tagName == 'field_base') {
					if(child.firstChild) {
						this.basicalField[basicalCount] = new Array();
						this.basicalField[basicalCount][0] = child.getAttribute('type');
						this.basicalField[basicalCount][1] = child.getAttribute('label');
						this.basicalField[basicalCount][2] = child.firstChild.nodeValue;
						basicalCount++;
					}
				}

				if (child.tagName == 'bf_data') {
					if(child.firstChild) {
						this.bfData[bfCount] = new Array();
						this.bfData[bfCount][0] = child.getAttribute('id');
						this.bfData[bfCount][1] = child.getAttribute('icon');
						this.bfData[bfCount][2] = child.firstChild.nodeValue;
						bfCount++;
					}
				}
			}
		}

	}
	
	this.getListCount = function() {
		return this.listCount;
	}
	this.getProvider = function() {
		return this.provider;
	}
	this.getSerial = function() {
		return this.serial;
	}
	this.getCity = function() {
		return this.city;
	}
	this.getCityName = function() {
		return this.cityName;
	}
	this.getName = function() {
		return this.name;
	}
	this.getKana = function() {
		return this.kana;
	}
	this.getModified = function() {
		return this.modified;
	}
	this.getBf = function() {
		return this.bf;
	}
	this.getCategory = function() {
		return this.category;
	}
	this.getCategoryName = function() {
		return this.categoryName;
	}
	this.getSubCategory = function() {
		return this.subCategory;
	}
	this.getSubCategoryName = function() {
		return this.subCategoryName;
	}
	this.getSubCategoryIcon = function() {
		return this.subCategoryIcon;
	}
	this.getFlagExcel = function() {
		return this.flagExcel;
	}
	this.getFlagGis = function() {
		return this.flagGis;
	}
	this.getFlagDisplay = function() {
		return this.flagDisplay;
	}
	this.getUrl = function() {
		return this.url;
	}
	this.getUrlName = function() {
		return this.urlName;
	}
	this.getPointX = function() {
		return this.pointX;
	}
	this.getPointY = function() {
		return this.pointY;
	}
	this.getMachikuruUrl = function() {
		return this.machikuruUrl;
	}
	this.getCapsuleID = function() {
		return this.capsuleID;
	}
	this.getOutline = function() {
		return this.outline;
	}
	this.getBasicalField = function() {
		return this.basicalField;
	}
	this.getOptionalField = function() {
		return this.optionalField;
	}
	this.getBfData = function() {
		return this.bfData;
	}
}

