说明:11_00020.xml为InfoPath的xml文件。利用Linq to xml来便捷地读取相关节点。

XmlDocument doc = new XmlDocument();
                doc.Load("D:\\11_00020.xml");
                XElement xmlTree = XElement.Parse(doc.OuterXml);
                XNamespace awNamespace = xmlTree.GetNamespaceOfPrefix("my");
                Console.WriteLine("Namespace: {0}", awNamespace);

                Console.ReadLine();

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2021-05-08
  • 2022-12-23
  • 2021-11-17
  • 2021-10-18
  • 2021-09-04
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-12-27
  • 2021-07-21
  • 2021-07-12
相关资源
相似解决方案