function KankoKeywordData() {

	this.aroundArea = 0;
	this.aroundCategory = "";

	this.totalCount = 0;
	this.listCount = 0;
	this.provider = null;
	this.serial = null;
	this.city = null;
	this.cityName = null;
	this.name = null;
	this.kana = null;
	this.modified = null;
	this.category = null;
	this.categoryName = null;
	this.subCategory = null;
	this.subCategoryName = null;
	this.flagExcel = null;
	this.flagGis = null;
	this.flagDisplay = null;
	this.pointX = null;
	this.pointY = null;
	this.machikuruUrl = null;
	this.capsuleID = null;
	this.init = function(xml) {
		this.listCount = xml.getElementsByTagName('datainfo').length;
		this.provider = new Array();
		this.serial = new Array();
		this.city = new Array();
		this.cityName = new Array();
		this.name = new Array();
		this.kana = new Array();
		this.modified = new Array();
		this.category = new Array();
		this.categoryName = new Array();
		this.subCategory = new Array();
		this.subCategoryName = new Array();
		this.subCategoryIcon = new Array();
		this.flagExcel = new Array();
		this.flagGis = new Array();
		this.flagDisplay = new Array();
		this.url = new Array();
		this.pointX = new Array();
		this.pointY = new Array();
		this.machikuruUrl = new Array();
		this.capsuleID = new Array();
 
		this.totalCount = xml.getElementsByTagName('totalcount')[0].childNodes[0].nodeValue;



		// リクエスト情報
		var req = xml.getElementsByTagName('requestinfo');
		for (var i = 0; i < req.length; i++) {
			for (var j = 0; j < req[i].childNodes.length; j++) {
				var child = req[i].childNodes[j];
				// 検索カテゴリ
				if (child.tagName == 'aroundcategory') {
					this.aroundCategory = child.firstChild.nodeValue;
				}
				if (child.tagName == 'aroundarea') {
					this.aroundArea = parseInt(child.firstChild.nodeValue);
				}
			}
		}

		var dataList = xml.getElementsByTagName('datainfo');
		for (i = 0; i < this.listCount; i++) {

			
			this.provider[i] = "";
			this.serial[i] = "";
			this.city[i] = "";
			this.cityName[i] = "";
			this.name[i] = "";
			this.kana[i] = "";
			this.modified[i] = "";
			this.category[i] = "";
			this.categoryName[i] = "";
			this.subCategory[i] = "";
			this.subCategoryName[i] = "";
			this.subCategoryIcon[i] = "";
			this.flagExcel[i] = "";
			this.flagGis[i] = "";
			this.flagDisplay[i] = "";
			this.url[i] = "";
			this.pointX[i] = 0;
			this.pointY[i] = 0;
			this.machikuruUrl[i] = "";
			this.capsuleID[i] = "";

			this.provider[i] = dataList[i].getAttribute('provider');
			this.serial[i] = 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[i] = child.getAttribute('id');
						this.cityName[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'name') {
					if(child.firstChild) {
						this.kana[i] = child.getAttribute('kana');
						this.name[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'modified') {
					if(child.firstChild) {
						this.modified[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'category') {
					if(child.firstChild) {
						this.category[i] = child.getAttribute('id');
						this.categoryName[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'subcategory') {
					if(child.firstChild) {
						this.subCategory[i] = child.getAttribute('id');
						this.subCategoryIcon[i] = child.getAttribute('icon');
						this.subCategoryName[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'flagexcel') {
					if(child.firstChild) {
						this.flagExcel[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'flagdisplay') {
					if(child.firstChild) {
						this.flagDisplay[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'point') {
					if(child.firstChild) {
						this.pointX[i] = child.getAttribute('x');
						this.pointY[i] = child.getAttribute('y');
						this.flagGis[i] = child.firstChild.nodeValue;
					}
				}
			}
		}

	}
	this.getAroundCategory = function() {
		return this.aroundCategory;
	}
	this.getAroundArea = function() {
		return this.aroundArea;
	}
	
	this.getTotalCount = function() {
		return this.totalCount;
	}
	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.getCategory = function() {
		return this.category;
	}
	this.getCategoryName = function() {
		return this.categoryName;
	}
	this.getSubCategory = function() {
		return this.subCategory;
	}
	this.getSubCategoryName = function() {
		return this.subCategoryName;
	}
	this.getFlagExcel = function() {
		return this.flagExcel;
	}
	this.getFlagGis = function() {
		return this.flagGis;
	}
	this.getFlagDisplay = function() {
		return this.flagDisplay;
	}
	this.getPointX = function() {
		return this.pointX;
	}
	this.getPointY = function() {
		return this.pointY;
	}
}

