惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
M
MIT News - Artificial intelligence
博客园_首页
IT之家
IT之家
L
LangChain Blog
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
博客园 - Franky
云风的 BLOG
云风的 BLOG
罗磊的独立博客
量子位
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
博客园 - 叶小钗
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
B
Blog
T
Tailwind CSS Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - ◎寶☆呗

Sharepoint 自定义字段(栏) 动态获取数据 Sharepoint 工具使用总结 Sharepoint 内存泄漏 检测工具+-- Extjs 中的tbar中的事件 winform Tab键循序 小发现 instsrv.exe——来自Windows 2000 Resource Kits的一个小工具 [转载]MOSS 2007 SP1 stsadm 194 条指令 (用命令行部署infopath Form )Deploy administrator-approved form templates using command line sharepoint计时器(定时发邮件) Infopath开发经验(xml数据) 基本活动:CodeActivity Creating a Custom SharePoint 2007 List Definition 通过Sharepoint扩展的Webserives来获取某一权限是是否存在 Create a New SharePoint Permission Level and Bind it to an Existing SharePoint Group 执行带返回参数的存储过程 Sorry.....Sorry..... C#编程规范<二> C#代码规范. 工作需要养成的习惯(个人经验)
操作Infopath中的XMl
◎寶☆呗 · 2007-10-08 · via 博客园 - ◎寶☆呗

  •  Infopath2007中无法直接操作控件..所以我们操作.XML

            XmlDocument xdoc = new XmlDocument();
            xdoc.LoadXml(Control.XmlDataString);
            XmlNameTable xNameTable = xdoc.NameTable;
            XmlNamespaceManager xNamespaceManager = new XmlNamespaceManager(xNameTable);
            xNamespaceManager.AddNamespace("my", http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-08-30T09:14:19);
    这样就能获取xml中的控件属性和值
  • 我们也可以写方法来.获得我么想要的特定的值
    private string getXmlNodeValue(string bindingField)
      {
            XmlDocument xdoc = new XmlDocument();
            xdoc.LoadXml(FormControl2.XmlDataString);
            XmlNameTable xNameTable = xdoc.NameTable;
            XmlNamespaceManager xNamespaceManager = new XmlNamespaceManager(xNameTable);
            xNamespaceManager.AddNamespace("my", "http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-08-30T09:14:19");
            string field = xdoc.GetElementsByTagName(bindingField).Item(0).InnerText;
            return field;
        }
  • posted on 2007-10-08 10:21  ◎寶☆呗  阅读(237)  评论()    收藏  举报