从SyndicationContent阅读文本内容 [英] Reading content text from SyndicationContent
本文介绍了从SyndicationContent阅读文本内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我想读饲料项目内容转换为字符串。
Hi i am trying to read the content into string from feed items.
SyndicationFeed feed = SyndicationFeed.Load(feedReader);
SydicationContent itemContent = feed.Items.ToList<SyndicationItem>()[0].Content;
string retrivedContent = itemContent .......???
我怎么能读取来自itemContent文字?
how can I read the text from the itemContent ?
文档展示了如何创建TextSyndicationContent
The documentation shows how to create TextSyndicationContent
TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
SyndicationItem item = new SyndicationItem("Item Title", textContent, new Uri("server/items";), "ItemID", DateTime.Now);
扭转这个办法吗?
Any way to reverse this ?
感谢
推荐答案
您可以看看的 SyndicationFeed 或在<一个href=\"http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationcontent.aspx\"相对=nofollow> SyndicationContent 。
这篇关于从SyndicationContent阅读文本内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文