我有一个问题。从windows手机上的RSS源提取图像链接
如何从rss-feed中提取网址?
,我需要提取的字符串是这样的:
><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="screen2" src="http://hereisthelink/screen2.png" alt="screen2" width="261" height="434" border="0" />
这是我的自我hostet的WordPress,博客的RSS源,在<content:encoded>
区间内。
我想获取一个条目的第一个图像,以将它与标题(此作品)放在我的ListBox中。
但我尝试了很多事情来实现这一点,但没有任何工作。
我正在使用Silverlight 3的Syndication.dll来提取供稿项目。
目前,我真的站在墙前来解决这个问题。
我愿意接受任何建议。
如果你可以将你的rss feed转换为客户端的一个字符串,那么你只需要解析它就可以得到你的图像。 – BigL
也许这个链接可以帮助您: http://stackoverflow.com/questions/319591/reading-non-standard-elements-in-a-syndicationitem-with-syndicationfeed – BigL
我检查了您的链接。这不是我正在寻找的。我想收集一个随机生成的URL到图像,将图像绑定到这个URL。目前我正在玩RegEx来解决这个问题。任何想法呢? Thx – MSicc