缺少的XPath在Windows应用程序新城 [英] Missing XPath in Windows Metro App
问题描述
有没有在Windows 8地铁应用XML的执行XPath查询的一个简单的方法? System.Xml.XPath
不用于创建应用麦德龙在.NET框架,并尝试使用HTMLAgilityPack我一直没能取得任何进展之后,要么存在。
Is there an easy way to perform XPath query's on XML in a Windows 8 metro app? System.Xml.XPath
does not exist in the .NET framework used to create metro apps and after trying to use the HTMLAgilityPack I haven't been able to make any progress either.
在那里执行这些查询的?
Are there an easy way to perform these query's?
推荐答案
一个简单的方法我不知道你要完成什么,但你可以尝试和利用
System.Xml.Linq的它提供了的XDocument,的XElement,XName的,XNode,XContainer等访问并解析每一个方法。看到了System.XML和System.Xml.Linq的使用查询和使用的类在这里的一个例子:的 http://code.msdn.microsoft.com/windowsapps/XLinq-XmlReader-and-1e17c0a5
I am not sure what you are trying to accomplish exactly, but you could try and leverage System.XML.Linq which provides access to XDocument, XElement, XName, XNode, XContainer etc and Parse methods for each. See an example of using queries and using the classes in System.XML and System.XML.Linq here: http://code.msdn.microsoft.com/windowsapps/XLinq-XmlReader-and-1e17c0a5
这篇关于缺少的XPath在Windows应用程序新城的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!