`
lovell
  • 浏览: 8263 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

使用reader.readRecords(xmlDocument)将一个XML拆分N个Store

    博客分类:
  • Ext
阅读更多
<outputdatas xmlns="XML">
<resultcode>0</resultcode>
<reason>OK</reason>
<results sets="1">
	<result rows="1" cols="9" set_id="201">
		<row rownum="1">
			<col colnum="1" param_id="2015001" param_name="">a</col>
			<col colnum="2" param_id="2015002" param_name="">070009</col>
			<col colnum="3" param_id="2015003" param_name="">程洁梅</col>
			<col colnum="4" param_id="2015004" param_name="">d</col>
			<col colnum="5" param_id="2015005" param_name="">VIP</col>
			<col colnum="6" param_id="2015006" param_name="">Killer</col>
			<col colnum="7" param_id="2015007" param_name="">value_7</col>
			<col colnum="8" param_id="2015008" param_name="">中文</col>
			<col colnum="9" param_id="2015009" param_name="">3</col>
			<col colnum="10" param_id="2015010" param_name="">value_7</col>
			<col colnum="11" param_id="2015011" param_name="">value_7</col>
			<col colnum="12" param_id="2015012" param_name="">value_7</col>
			<col colnum="13" param_id="2015013" param_name="">100%</col>
			<col colnum="14" param_id="2015014" param_name="">80%</col>
			<col colnum="15" param_id="2015015" param_name="">无</col>
			<col colnum="16" param_id="2015016" param_name="">value_7</col>
			<col colnum="17" param_id="2015017" param_name="">ggg</col>
			<col colnum="18" param_id="2015018" param_name="">value_7</col>
			<col colnum="19" param_id="2015019" param_name="">value_7</col>
			<col colnum="20" param_id="2015020" param_name="">value_7</col>
		</row>
	</result> 
	<result rows="2" cols="9" set_id="202">
		<row rownum="1">
			<col colnum="1" param_id="2015031" param_name="">value_1</col>
			<col colnum="2" param_id="2015032" param_name="">13513513541654631X</col>
			<col colnum="3" param_id="2015033" param_name="">45413513</col>
			<col colnum="4" param_id="2015034" param_name="">不知道</col>
		</row>
	</result> 
	<result rows="2" cols="9" set_id="203">
		<row rownum="1">
			<col colnum="1" param_id="2015041" param_name="">程洁梅</col>
		</row>
	</result> 
	<result rows="2" cols="9" set_id="204">
		<row rownum="1">
			<col colnum="1" param_id="2015051" param_name=""></col>
			<col colnum="1" param_id="2015052" param_name="">广州市大沙头二马路55号之一4铺都城快餐店</col>
			<col colnum="1" param_id="2015053" param_name="">138XXXXXXXX</col>
			<col colnum="1" param_id="2015054" param_name="">iloveliaoliao@vip.qq.com</col>
			<col colnum="1" param_id="2015055" param_name="">999</col>
		</row>
	</result> 
	<result rows="2" cols="9" set_id="205">
		<row rownum="1">
			<col colnum="1" param_id="2015061" param_name="">黑名单</col>
		</row>
	</result> 
	<result rows="2" cols="9" set_id="206">
		<row rownum="1">
			<col colnum="1" param_id="2015071" param_name="">金领</col>
		</row>
	</result> 
	<result rows="2" cols="9" set_id="208">
		<row rownum="1">
			<col colnum="1" param_id="2015171" param_name="">value_1</col>
			<col colnum="2" param_id="2015172" param_name="">value_2011</col>
			<col colnum="3" param_id="2015173" param_name="">value_3</col>
			<col colnum="4" param_id="2015174" param_name="">value_4</col>
			<col colnum="5" param_id="2015175" param_name="">value_5</col>
			<col colnum="6" param_id="2015176" param_name="">value_6</col>
			<col colnum="7" param_id="2015177" param_name="">value_7</col>
			<col colnum="8" param_id="2015178" param_name="">value_8</col>
			<col colnum="9" param_id="2015179" param_name="">value_9</col>
			<col colnum="10" param_id="2015180" param_name="">value_0</col>
			<col colnum="11" param_id="2015181" param_name="">value_1</col>
			<col colnum="12" param_id="2015182" param_name="">value_2</col>
			<col colnum="13" param_id="2015183" param_name="">value_3</col>
			<col colnum="14" param_id="2015184" param_name="">value_4</col>
		</row>
		<row rownum="2">
			<col colnum="1" param_id="2015171" param_name="">value_1</col>
			<col colnum="2" param_id="2015172" param_name="">value_2012</col>
			<col colnum="3" param_id="2015173" param_name="">value_3</col>
			<col colnum="4" param_id="2015174" param_name="">value_4</col>
			<col colnum="5" param_id="2015175" param_name="">value_5</col>
			<col colnum="6" param_id="2015176" param_name="">value_6</col>
			<col colnum="7" param_id="2015177" param_name="">value_7</col>
			<col colnum="8" param_id="2015178" param_name="">value_8</col>
			<col colnum="9" param_id="2015179" param_name="">value_9</col>
			<col colnum="10" param_id="2015180" param_name="">value_0</col>
			<col colnum="11" param_id="2015181" param_name="">value_1</col>
			<col colnum="12" param_id="2015182" param_name="">value_2</col>
			<col colnum="13" param_id="2015183" param_name="">value_3</col>
			<col colnum="14" param_id="2015184" param_name="">value_4</col>
		</row>
	</result>
	<result rows="2" cols="9" set_id="209">
		<row rownum="1">
			<col colnum="1" param_id="2015201" param_name="">value_1</col>
			<col colnum="2" param_id="2015202" param_name="">value_2091</col>
			<col colnum="3" param_id="2015203" param_name="">value_3</col>
			<col colnum="4" param_id="2015204" param_name="">value_4</col>
			<col colnum="5" param_id="2015205" param_name="">value_5</col>
			<col colnum="6" param_id="2015206" param_name="">value_6</col>
			<col colnum="7" param_id="2015207" param_name="">value_7</col>
		</row>
		<row rownum="2">
			<col colnum="1" param_id="2015201" param_name="">value_1</col>
			<col colnum="2" param_id="2015202" param_name="">value_2092</col>
			<col colnum="3" param_id="2015203" param_name="">value_3</col>
			<col colnum="4" param_id="2015204" param_name="">value_4</col>
			<col colnum="5" param_id="2015205" param_name="">value_5</col>
			<col colnum="6" param_id="2015206" param_name="">value_6</col>
			<col colnum="7" param_id="2015207" param_name="">中文</col>
		</row>
	</result> 
</results>
</outputdatas>;

GetClientInfo = function() {
	var record = {
		//客户基本信息 201~206
		cliBInfRecord : new Ext.data.Record.create([
			{name: '2015001', mapping: 'result[@set_id=201] > row > col[@param_id=2015001]'},
			{name: '2015002', mapping: 'result[@set_id=201] > row > col[@param_id=2015002]'},
			{name: '2015003', mapping: 'result[@set_id=201] > row > col[@param_id=2015003]'},
			{name: '2015004', mapping: 'result[@set_id=201] > row > col[@param_id=2015004]'},
			{name: '2015005', mapping: 'result[@set_id=201] > row > col[@param_id=2015005]'},
			{name: '2015006', mapping: 'result[@set_id=201] > row > col[@param_id=2015006]'},
			{name: '2015007', mapping: 'result[@set_id=201] > row > col[@param_id=2015007]'},
			{name: '2015008', mapping: 'result[@set_id=201] > row > col[@param_id=2015008]'},
			{name: '2015009', mapping: 'result[@set_id=201] > row > col[@param_id=2015009]'},
			{name: '2015010', mapping: 'result[@set_id=201] > row > col[@param_id=2015010]'},
			{name: '2015011', mapping: 'result[@set_id=201] > row > col[@param_id=2015011]'},
			{name: '2015012', mapping: 'result[@set_id=201] > row > col[@param_id=2015012]'},
			{name: '2015013', mapping: 'result[@set_id=201] > row > col[@param_id=2015013]'},
			{name: '2015014', mapping: 'result[@set_id=201] > row > col[@param_id=2015014]'},
			{name: '2015015', mapping: 'result[@set_id=201] > row > col[@param_id=2015015]'},
			{name: '2015016', mapping: 'result[@set_id=201] > row > col[@param_id=2015016]'},
			{name: '2015017', mapping: 'result[@set_id=201] > row > col[@param_id=2015017]'},
			{name: '2015018', mapping: 'result[@set_id=201] > row > col[@param_id=2015018]'},
			{name: '2015019', mapping: 'result[@set_id=201] > row > col[@param_id=2015019]'},
			{name: '2015020', mapping: 'result[@set_id=201] > row > col[@param_id=2015020]'},
			//客户证件信息
			{name: '2015031', mapping: 'result[@set_id=202] > row > col[@param_id=2015031]'},
			{name: '2015032', mapping: 'result[@set_id=202] > row > col[@param_id=2015032]'},
			{name: '2015033', mapping: 'result[@set_id=202] > row > col[@param_id=2015033]'},
			{name: '2015034', mapping: 'result[@set_id=202] > row > col[@param_id=2015034]'},
			//客户联系人信息
			{name: '2015041', mapping: 'result[@set_id=203] > row > col[@param_id=2015041]'},
			//地址信息
			{name: '2015051', mapping: 'result[@set_id=204] > row > col[@param_id=2015051]'},
			{name: '2015052', mapping: 'result[@set_id=204] > row > col[@param_id=2015052]'},
			{name: '2015053', mapping: 'result[@set_id=204] > row > col[@param_id=2015053]'},
			{name: '2015054', mapping: 'result[@set_id=204] > row > col[@param_id=2015054]'},
			{name: '2015055', mapping: 'result[@set_id=204] > row > col[@param_id=2015055]'},
			//黑红名单
			{name: '2015061', mapping: 'result[@set_id=205] > row > col[@param_id=2015061]'},
			//客户群客户关系
			{name: '2015071', mapping: 'result[@set_id=206] > row > col[@param_id=2015071]'}
		]),
		
		//服务基本信息207
		cliSerBInfRecord : new Ext.data.Record.create([
			{name: '2015141', mapping: 'col[@param_id=2015141]'},
			{name: '2015142', mapping: 'col[@param_id=2015142]'},
			{name: '2015143', mapping: 'col[@param_id=2015143]'},
			{name: '2015144', mapping: 'col[@param_id=2015144]'},
			{name: '2015145', mapping: 'col[@param_id=2015145]'},
			{name: '2015146', mapping: 'col[@param_id=2015146]'},
			{name: '2015147', mapping: 'col[@param_id=2015147]'},
			{name: '2015148', mapping: 'col[@param_id=2015148]'},
			{name: '2015149', mapping: 'col[@param_id=2015149]'},
			{name: '2015150', mapping: 'col[@param_id=2015150]'},
			{name: '2015151', mapping: 'col[@param_id=2015151]'},
			{name: '2015152', mapping: 'col[@param_id=2015152]'},
			{name: '2015153', mapping: 'col[@param_id=2015153]'},
			{name: '2015154', mapping: 'col[@param_id=2015154]'},
			{name: '2015155', mapping: 'col[@param_id=2015155]'},
			{name: '2015156', mapping: 'col[@param_id=2015156]'},
			{name: '2015157', mapping: 'col[@param_id=2015157]'},
			{name: '2015158', mapping: 'col[@param_id=2015158]'},
			{name: '2015159', mapping: 'col[@param_id=2015159]'}
		]),
		
		// 服务特性信息208
		cliSerFeatInfRecord : new Ext.data.Record.create([
			{name: '2015171', mapping: 'col[@param_id=2015171]'},
			{name: '2015172', mapping: 'col[@param_id=2015172]'},
			{name: '2015173', mapping: 'col[@param_id=2015173]'},
			{name: '2015174', mapping: 'col[@param_id=2015174]'},
			{name: '2015175', mapping: 'col[@param_id=2015175]'},
			{name: '2015176', mapping: 'col[@param_id=2015176]'},
			{name: '2015177', mapping: 'col[@param_id=2015177]'},
			 {name: '2015178', mapping: 'col[@param_id=2015178]'},
			{name: '2015179', mapping: 'col[@param_id=2015179]'},
			{name: '2015180', mapping: 'col[@param_id=2015180]'},
			{name: '2015181', mapping: 'col[@param_id=2015181]'},
			{name: '2015182', mapping: 'col[@param_id=2015182]'},
			{name: '2015183', mapping: 'col[@param_id=2015183]'},
			{name: '2015184', mapping: 'col[@param_id=2015184]'}
		]),
		
		//服务关系信息209
		cliSerRelInfRecord : new Ext.data.Record.create([
			{name: '2015201', mapping: 'col[@param_id=2015201]'},
			{name: '2015202', mapping: 'col[@param_id=2015202]'},
			{name: '2015203', mapping: 'col[@param_id=2015203]'},
			{name: '2015204', mapping: 'col[@param_id=2015204]'},
			{name: '2015205', mapping: 'col[@param_id=2015205]'},
			{name: '2015206', mapping: 'col[@param_id=2015206]'},
			{name: '2015207', mapping: 'col[@param_id=2015207]'}
		]),
		
		//黑红名单信息210 
		cliBRListInfRecord : new Ext.data.Record.create([
			{name: '2015211', mapping: 'col[@param_id=2015211]'},
			{name: '2015212', mapping: 'col[@param_id=2015212]'},
			{name: '2015213', mapping: 'col[@param_id=2015213]'},
			{name: '2015214', mapping: 'col[@param_id=2015214]'},
			{name: '2015215', mapping: 'col[@param_id=2015215]'},
			{name: '2015216', mapping: 'col[@param_id=2015216]'},
			{name: '2015217', mapping: 'col[@param_id=2015217]'},
			{name: '2015218', mapping: 'col[@param_id=2015218]'},
			{name: '2015219', mapping: 'col[@param_id=2015219]'},
			{name: '2015220', mapping: 'col[@param_id=2015220]'},
			{name: '2015231', mapping: 'col[@param_id=2015231]'},
			{name: '2015232', mapping: 'col[@param_id=2015232]'},
			{name: '2015233', mapping: 'col[@param_id=2015233]'},
			{name: '2015234', mapping: 'col[@param_id=2015234]'},
			{name: '2015235', mapping: 'col[@param_id=2015235]'},
			{name: '2015236', mapping: 'col[@param_id=2015236]'},
			{name: '2015237', mapping: 'col[@param_id=2015237]'},
			{name: '2015238', mapping: 'col[@param_id=2015238]'},
			{name: '2015239', mapping: 'col[@param_id=2015239]'},
			{name: '2015240', mapping: 'col[@param_id=2015240]'},
			{name: '2015241', mapping: 'col[@param_id=2015241]'},
			{name: '2015242', mapping: 'col[@param_id=2015242]'},
			{name: '2015243', mapping: 'col[@param_id=2015243]'}
		]),
		
		//帐户基本信息211
		cliAccBInfRecord : new Ext.data.Record.create([
			{name: '2015251', mapping: 'col[@param_id=2015251]'},
			{name: '2015252', mapping: 'col[@param_id=2015252]'},
			{name: '2015253', mapping: 'col[@param_id=2015253]'},
			{name: '2015254', mapping: 'col[@param_id=2015254]'},
			{name: '2015255', mapping: 'col[@param_id=2015255]'},
			{name: '2015256', mapping: 'col[@param_id=2015256]'},
			{name: '2015257', mapping: 'col[@param_id=2015257]'},
			{name: '2015258', mapping: 'col[@param_id=2015258]'},
			{name: '2015259', mapping: 'col[@param_id=2015259]'},
			{name: '2015260', mapping: 'col[@param_id=2015260]'},
			{name: '2015261', mapping: 'col[@param_id=2015261]'},
			{name: '2015262', mapping: 'col[@param_id=2015262]'}
		]),
		
		//支付方案信息 212
		cliPayPlanInfRecord : new Ext.data.Record.create([
			{name: '2015271', mapping: 'col[@param_id=2015271]'},
			{name: '2015272', mapping: 'col[@param_id=2015272]'},
			{name: '2015273', mapping: 'col[@param_id=2015273]'},
			{name: '2015274', mapping: 'col[@param_id=2015274]'},
			{name: '2015275', mapping: 'col[@param_id=2015275]'},
			{name: '2015276', mapping: 'col[@param_id=2015276]'},
			{name: '2015277', mapping: 'col[@param_id=2015277]'},
			{name: '2015278', mapping: 'col[@param_id=2015278]'},
			{name: '2015279', mapping: 'col[@param_id=2015279]'}
		]),
		
		//服务帐户关系信息213
		cliSerAccRelInfRecord : new Ext.data.Record.create([
			{name: '2015301', mapping: 'col[@param_id=2015301]'},
			{name: '2015302', mapping: 'col[@param_id=2015302]'},
			{name: '2015303', mapping: 'col[@param_id=2015303]'},
			{name: '2015304', mapping: 'col[@param_id=2015304]'},
			{name: '2015305', mapping: 'col[@param_id=2015305]'},
			{name: '2015306', mapping: 'col[@param_id=2015306]'},
			{name: '2015307', mapping: 'col[@param_id=2015307]'},
			{name: '2015308', mapping: 'col[@param_id=2015308]'},
			{name: '2015309', mapping: 'col[@param_id=2015309]'},
			{name: '2015310', mapping: 'col[@param_id=2015310]'},
			{name: '2015311', mapping: 'col[@param_id=2015311]'},
			{name: '2015312', mapping: 'col[@param_id=2015312]'},
			{name: '2015313', mapping: 'col[@param_id=2015313]'},
			{name: '2015314', mapping: 'col[@param_id=2015314]'},
			{name: '2015315', mapping: 'col[@param_id=2015315]'},
			{name: '2015316', mapping: 'col[@param_id=2015316]'},
			{name: '2015317', mapping: 'col[@param_id=2015317]'},
			{name: '2015318', mapping: 'col[@param_id=2015318]'},
			{name: '2015319', mapping: 'col[@param_id=2015319]'},
			{name: '2015320', mapping: 'col[@param_id=2015320]'},
			{name: '2015321', mapping: 'col[@param_id=2015321]'}
		]),
		
		//客户扩展属性信息214
		cliExpAttrInfRecord : new Ext.data.Record.create([
			{name: '2015331', mapping: 'col[@param_id=2015331]'},
			{name: '2015332', mapping: 'col[@param_id=2015332]'},
			{name: '2015333', mapping: 'col[@param_id=2015333]'},
			{name: '2015334', mapping: 'col[@param_id=2015334]'},
			{name: '2015335', mapping: 'col[@param_id=2015335]'},
			{name: '2015336', mapping: 'col[@param_id=2015336]'},
			{name: '2015337', mapping: 'col[@param_id=2015337]'},
			{name: '2015338', mapping: 'col[@param_id=2015338]'},
			{name: '2015339', mapping: 'col[@param_id=2015339]'},
			{name: '2015340', mapping: 'col[@param_id=2015340]'},
			{name: '2015341', mapping: 'col[@param_id=2015341]'},
			{name: '2015342', mapping: 'col[@param_id=2015342]'},
			{name: '2015343', mapping: 'col[@param_id=2015343]'},
			{name: '2015344', mapping: 'col[@param_id=2015344]'}
		]),
		
		//客户品牌信息215
		cliBrandInfRecord : new Ext.data.Record.create([
			{name: '2015351', mapping: 'col[@param_id=2015351]'},
			{name: '2015352', mapping: 'col[@param_id=2015352]'},
			{name: '2015353', mapping: 'col[@param_id=2015353]'},
			{name: '2015354', mapping: 'col[@param_id=2015354]'},
			{name: '2015355', mapping: 'col[@param_id=2015355]'}
		]),
		
		//客户管控属性216
		cliMgtCtrAttrRecord : new Ext.data.Record.create([
			{name: '2015361', mapping: 'col[@param_id=2015361]'},
			{name: '2015362', mapping: 'col[@param_id=2015362]'},
			{name: '2015363', mapping: 'col[@param_id=2015363]'}
		])
	};
	
	var clientDs = {
		cliBInfDs: '',
		cliSerBInfDs: '',
		cliSerFeatInfDs: '',
		cliSerRelInfDs: '',
		cliBRListInfDs: '',
		cliAccBInfDs: '',
		cliPayPlanInfDs: '',
		cliSerAccRelInfDs: '',
		cliExpAttrInfDs: '',
		cliBrandInfDs: '',
		cliMgtCtrAttrDs: ''
	};
	//同步请求
	var result = Synchronize('clientInfo.do?action=getClientInfo');
	if (result.success) {
		var xmlDocument;
		var reader,data;
		if (Ext.isIE) {
			xmlDocument = new ActiveXObject("Msxml2.FreeThreadedDOMDocument")
			xmlDocument.async = false;
			xmlDocument.resolveExternals = false;
			xmlDocument.loadXML(result.result)
		} else {
			xmlDocument = (new DOMParser()).parseFromString(result.result, "text/xml");
		}
		//客户基本信息
		reader = new Ext.data.XmlReader({
					record : "results"
				}, record.cliBInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliBInfDs = data.records[0];
		//服务基本信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=207] > row"
				}, record.cliSerBInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliSerBInfDs = new Ext.data.Store();
		clientDs.cliSerBInfDs.add(data.records);
		//服务特性信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=208] > row"
				}, record.cliSerFeatInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliSerFeatInfDs = new Ext.data.Store();
		clientDs.cliSerFeatInfDs.add(data.records);
		//服务关系信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=209] > row"
				}, record.cliSerRelInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliSerRelInfDs = new Ext.data.Store();
		clientDs.cliSerRelInfDs.add(data.records);
		//黑红名单信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=210] > row"
				}, record.cliBRListInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliBRListInfDs = new Ext.data.Store();
		clientDs.cliBRListInfDs.add(data.records);
		//帐户基本信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=211] > row"
				}, record.cliAccBInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliAccBInfDs = new Ext.data.Store();
		clientDs.cliAccBInfDs.add(data.records);
		//支付方案信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=212] > row"
				}, record.cliPayPlanInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliPayPlanInfDs = new Ext.data.Store();
		clientDs.cliPayPlanInfDs.add(data.records);
		// 服务帐户关系信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=213] > row"
				}, record.cliSerAccRelInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliSerAccRelInfDs = new Ext.data.Store();
		clientDs.cliSerAccRelInfDs.add(data.records);
		// 客户扩展属性信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=214] > row"
				}, record.cliExpAttrInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliExpAttrInfDs = new Ext.data.Store();
		clientDs.cliExpAttrInfDs.add(data.records);
		// 客户品牌信息
		reader = new Ext.data.XmlReader({
					record : "result[set_id=215] > row"
				}, record.cliBrandInfRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliBrandInfDs = new Ext.data.Store();
		clientDs.cliBrandInfDs.add(data.records);
		// 客户管控属性
		reader = new Ext.data.XmlReader({
					record : "result[set_id=216] > row"
				}, record.cliMgtCtrAttrRecord);
		data = reader.readRecords(xmlDocument);
		clientDs.cliMgtCtrAttrDs = new Ext.data.Store();
		clientDs.cliMgtCtrAttrDs.add(data.records);
	}
	return clientDs;
};
1
0
分享到:
评论

相关推荐

    Ext.data.Store 读取XML属性值

    `Ext.data.reader.Xml`是Ext.js中的一个阅读器,专门设计用来解析XML数据。阅读器的主要任务是从服务器返回的数据中提取字段值,并将这些值映射到模型实例上,以便`Store`能够理解并处理它们。 首先,我们需要创建...

    使用XMLDocument操作xml文件.zip_PMF_c# xml_xml

    XMLDocument是.NET Framework中System.Xml命名空间下的一个类,它是处理XML文档的主要对象。它可以加载XML文件、创建新的XML文档、修改现有文档,并将其保存回磁盘或以字符串形式输出。以下是一些关于XMLDocument的...

    FoxitReader.enu.setup.2.4.4.0911.x64.run.tar.gz

    福昕PDF阅读器是一款全球知名的PDF文档处理工具,其Linux版本——"FoxitReader.enu.setup.2.4.4.0911.x64.run",是专为Linux操作系统设计的PDF阅读和处理软件。这个软件版本号为2.4.4,发布日期可能为2009年11月,它...

    java xml.java操作XML文档

    例如,使用`javax.xml.parsers.DocumentBuilderFactory`和`org.w3c.dom.Document`类可以创建和操作DOM树。以下是一个简单的例子: ```java import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom....

    LINQ XML控制类

    一个非常方便控制XML的操作类,应用了LINQ 包括XML的读写,节点的读写和添加删除等基本操作。 public class XmlOperator { #region 属性 private string _strPath = ""; /// /// 文件路径 /// Open时...

    VC.XML.reader.module.design.rar_vc xml _xml reader

    1. **DOM(Document Object Model)解析方式**:DOM模型将XML文档表示为一棵树形结构,每个节点代表XML文档的一个部分。在VC++中,可以使用MSXML库(Microsoft XML Core Services)中的IXMLDOMDocument接口来实现DOM...

    从XmlDocument到XDocument的转换 .

    - **扩展方法**:为了方便地实现从`XmlDocument`到`XDocument`的转换,可以通过定义一个静态类`XmlDocumentExtensions`和两个扩展方法`ToXDocument`来实现这一目标。这两个方法分别用于无参数情况下的转换和带有`...

    VB.net读取xml文件

    以下是一个使用`XmlTextReader`读取XML文件的简单示例: ```vbnet Dim reader As New XmlTextReader("path_to_your_xml_file.xml") While reader.Read() If reader.NodeType = XmlNodeType.Element Then Console....

    Unity3D中Mono.Xml和XmlParser的使用

    - 开始解析:`while (reader.Read()) {...}` - 在事件处理程序中处理XML结构,例如记录开始元素、结束元素或处理文本内容。 在Unity3D中,由于引擎本身是基于.NET框架的,因此可以直接使用这些类库。虽然示例是在...

    PDFReader.rar

    总的来说,PDFReader.exe是一个使用Delphi编程语言创建的PDF阅读软件,它体现了Delphi在开发高效、功能丰富的桌面应用方面的优势。通过深入理解PDF格式和利用Delphi提供的工具,开发者能够提供一个方便用户查看和...

    将xmlDocument转化成dataset

    接下来,我们需要创建一个`DataSet`对象,并使用`ReadXml`方法将其填充。`DataSet`是.NET Framework中用于表示内存中一组相关数据的对象。通过使用`XmlNodeReader`作为输入源,`DataSet`可以方便地从XML文档中读取...

    电脑软件RSS阅读Fluent.Reader.Setup.1.0.1.x64.rar

    这个软件版本是1.0.1的64位版本,即"Fluent.Reader.Setup.1.0.1.x64",旨在适应Windows操作系统中的64位环境,确保软件性能更稳定,内存使用更优化。 RSS(Really Simple Syndication)是一种网络内容发布的协议,...

    xml_reader.rar_python_xml_yolo

    `ElementTree`库中的`ElementTree`类用于解析整个XML文档,而`Element`类则表示XML文档中的一个节点,可以包含子节点和属性。通过`find()`、`findall()`和`iter()`方法,我们可以方便地查找XML文档中的特定元素。...

    system.xml.linq

    在.NET框架中,System.Xml.Linq(Language Integrated Query for XML)是.NET 3.5引入的一个强大组件,它为XML处理提供了一种全新的、更直观且高效的方式。System.Xml.Linq库使得XML数据的创建、查询和转换变得更加...

    用System.Xml 读写XML

    `XmlTextReader`是一个高效的XML读取器,用于顺序读取XML文档。通过以下方式实例化和使用`XmlTextReader`: ```csharp using System.Xml; XmlTextReader reader = new XmlTextReader("*.xml"); while (reader....

    Ext.data.Store的基本用法

    在使用`Ext.data.Store`之前,首先需要创建一个其实例。创建实例时需要指定其配置项,主要包括`proxy`和`reader`,这两个配置项分别用来定义数据来源以及如何解析这些数据。 ```javascript var data = [ ['boy', 0...

    EPUBReader.rar

    首先,你需要将"EPUBReader.rar"这个压缩包文件下载到你的计算机上。这通常可以通过点击下载链接或者通过电子邮件接收来完成。一旦下载完毕,你需要使用一个压缩文件管理工具,如WinRAR或7-Zip,来解压缩文件。解压...

    ha_FoxitReader.rar PDF 阅读器

    "ha_FoxitReader.rar"是一个压缩包,其中包含了Foxit Reader这款知名的PDF阅读器的安装程序及相关资源。 Foxit Reader是一款轻便且功能强大的PDF阅读器,由Foxit Software公司开发。它以其快速启动速度、高效性能和...

    xml.rar_java xml_操作 xml

    1. DOM解析器:DOM将整个XML文档加载到内存中,形成一个树形结构,便于遍历和修改。Java中的`javax.xml.parsers.DocumentBuilderFactory`和`org.w3c.dom.Document`类可用于构建和操作DOM模型。例如: ```java ...

    Foxit.Reader.Pro.Portable.v3.0.1301.CN中文绿色注册版

    中文版不仅为中国用户提供了一个全新的中文界面, 将所有界面元素如菜单栏、工具栏、状态栏、提示信息、工具提示、对话框及书签等内容完全中文化, 而且保留了英文版2.2的所有功能, 支持中文查找、注释、选择等功能, ...

Global site tag (gtag.js) - Google Analytics