缺少的XPath在Windows应用程序新城 [英] Missing XPath in Windows Metro App

查看:130
本文介绍了缺少的XPath在Windows应用程序新城的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆