All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
初学PHP指导:php.ini 配置详细选项_[PHP教程]
同步两个Sql,server(1)_[SQL,Server教程]
Expression,Studio和Silverlight学习资源、安装问题汇总_[Asp.Net教程]
SQL数据操作基础(初级)4_mssql学习_编程技术
visual c++中程序调试之断点跟踪
[delphi语法3]布尔类型的使用方法
开发技术展望,Asp.net3.0,蓝图_[Asp.Net教程]
PHP5 OOP编程中的代理与异常定制_[PHP教程]
保护你的DLL和Code不被别人使用_[Asp.Net教程]
将DataGridView中每列分别绑定_[Asp.Net教程]
Reading number is top 10 pictures
囚犯暴乱了咋办?
Embarrassing things comic collection2
这才是真正的人体艺术2
The money of more than 100 countries and regions5
Fan bingbing black wings for platform and DanLuoWang believes beauty1
The real super beauty14
这是男生笨么?
你白吃了多少药
Sora aoi mirror memorial classics2
大年初五接财神
Download software ranking
传奇私服架设教程-chm
在线棋牌游戏3.05版
天龙八部十二宫服务端
Sora aoi, the maid, students' uniforms
Tram sex maniac 2 (H) rar bag15
The king of fighters 97(Mobile phone games-apk)
Unix video tutorial7
Ashlynn Video1
仙剑奇侠传98硬盘WINXP版
终极变速大师Speeder3.26
aaa published in(发表于) 2013/12/17 7:46:22 Edit(编辑)
C#根据条件搜索Infopath生成的XML数据_.net资料_编程技术

C#根据条件搜索Infopath生成的XML数据_.net资料_编程技术

C#根据条件搜索Infopath生成的XML数据_.net资料_编程技术-你的首页-uuhomepage.com

Infopath生成的XML文件如下






1




2




3




4
4
4


我想取得所有 c2 = '书' 的 c1的值,网上搜了好半天都没有类似的例子,只好自己根据Infopath模板中的XSL中的Xpath来琢磨


如下是可行的方法:


IXMLDOMNodeList nodelist = thisXDocument.DOM.SelectNodes("//Table1/b/c/c1[../c2 = '书']");
或者
IXMLDOMNodeList nodelist = thisXDocument.DOM.SelectNodes("//Table1/b/c/c1[../c2 = \"书\"]");


如果想取得 c2 ='书' 并且 c3 = '好'的c1值:


IXMLDOMNodeList nodelist = thisXDocument.DOM.SelectNodes("//Table1/b/c/c1[../c2 = '书' and ../c3 = '好']");
或者
IXMLDOMNodeList nodelist = thisXDocument.DOM.SelectNodes("//Table1/b/c/c1[../c2 = \"书\" and ../c3 = '好





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.