【发布时间】:2015-08-03 08:53:09
【问题描述】:
我们如何将 xml 数据文件读入Windows.Data.Xml.Dom.XMlDocument?
以下代码仅适用于System.Xml.XmlDocument。
XmlDocument myxml = XmlDocument.Load("abc.xml");
【问题讨论】:
-
确保首先调用构造函数。我最近在 excel VBA 中使用了这个:Dim fedbook As New MSXML2.DOMDocument60 fedbook.LoadXML strData。您可以将文件作为字符串读取,然后使用 LoadXml()
-
您找到解决方案了吗?
标签: c# xml windows-store-apps winrt-xaml