Tag: atom feed

ASP.net c#。 如何从博客中解析primefaces提要

饲料在: http://latestpackagingnews.blogspot.com/feeds/posts/default 我想要的标签是: 我不关心其他任何事情,我想做的就是循环这些! 请不要发布教程链接我已经尝试了一堆,只是无法得到任何工作。 请像对待白痴一样对待我。

LINQ与ATOM提要

我正在尝试创建一个简单的Silverlight应用程序,它调用ATOM提要并显示文章标题和提交日期。 我发现使用RSS提要和LINQ很容易做到这一点,但是我很难尝试使用ATOM提要做同样的事情。 下面的代码没有产生错误,但也没有产生任何结果! 我错过了什么? 来源ATOM提要:weblogs.asp.net/scottgu/atom.aspx 源教程:www.switchonthecode.com/tutorials/silverlight-datagrid-the-basics 源代码: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Xml.Linq; namespace BasicDataGridTutorial { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void btnPopulate_Click(object sender, RoutedEventArgs e) { //disable the […]

从C#读取gmail帐户的Atom提要

我有一个项目会将包含某些数据的电子邮件发送到Gmail帐户。 我认为阅读Atom提要可能更容易,而不是通过POP连接。 根据Google,我应该使用的url是: https://gmail.google.com/gmail/feed/atom 问题/问题是:如何validation我想要查看的电子邮件帐户? 如果我在Firefox中使用它,它会使用cookie。 我也不确定如何“下载”此请求应该返回的XML文件(我相信正确的术语是流)。 编辑1: 我正在使用.Net 3.5。

没有使用XPath从Atom XML文档中选择节点?

我正在尝试以编程方式解析Atom提要。 我将primefacesXML下载为字符串。 我可以将XML加载到XmlDocument 。 但是,我无法使用XPath遍历文档。 每当我尝试时,我都会null 。 我一直在使用这个Atom提要作为测试: http : //steve-yegge.blogspot.com/feeds/posts/default 调用SelectSingleNode()始终返回null ,除非我使用“ / ”。 这就是我现在正在尝试的: using (WebClient wc = new WebClient()) { string xml = wc.DownloadString(“http://steve-yegge.blogspot.com/feeds/posts/default”); XmlNamespaceManager nsMngr = new XmlNamespaceManager(new NameTable()); nsMngr.AddNamespace(string.Empty, “http://www.w3.org/2005/Atom”); nsMngr.AddNamespace(“app”, “http://purl.org/atom/app#”); XmlDocument atom = new XmlDocument(); atom.LoadXml(xml); XmlNode node = atom.SelectSingleNode(“//entry/link/app:edited”, nsMngr); } 我以为它可能是因为我的XPath,所以我也尝试了一个简单的根节点查询,因为我知道root应该工作: // I’ve tried both with […]

SelectNodes无法处理stackoverflow Feed

我正在尝试在我的rss阅读器中添加对stackoverflow提要的支持,但SelectNodes和SelectSingleNode没有任何效果。 这可能与我还不了解的ATOM和xml命名空间有关。 我已经通过从feed标签中删除所有属性来实现它,但这是一个黑客,我想正确地做到这一点。 那么,你如何使用带有primefaces馈送的SelectNodes ? 这是一个饲料片段。 StackOverflow.com – Questions tagged: c Check out the latest from StackOverflow.com 2008-08-24T12:25:30Z http://stackoverflow.com/feeds/tag/c http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://stackoverflow.com/questions/22901/what-is-the-best-way-to-communicate-with-a-sql-server What is the best way to communicate with a SQL server? Ed 2008-08-22T05:09:04Z 2008-08-23T04:52:39Z <p>I am going to be using c/c++, and would like to know the best way to talk to a MySQL […]