[英]do any of the C# RSS reader support reading custom fields
I have rss that has a number of other custom fields. 我有具有许多其他自定义字段的rss。 do any of the c# libraries (RSS.NEt, etc) support reading these fields?
c#库(RSS.NEt等)是否支持读取这些字段? i can't seem to find any reference to this.
我似乎找不到对此的任何参考。
what is the easier way to parse XML from an RSS feed and include customer fields 从RSS feed解析XML并包含客户字段的更简单方法是什么
RSS feeds have a well defined structure. RSS feed具有明确定义的结构。 You can use
XPath
to get the fields you need. 您可以使用
XPath
来获取所需的字段。
Here's a sample introduction and here's the MSDN documentation . 这是一个示例介绍 ,这是MSDN文档 。
One option is to just do the deserialization yourself. 一种选择是自己进行反序列化。 Throw together a few classes with attributes from System.XML.Serialization and you're set.
将几个类与System.XML.Serialization中的属性放在一起,就可以开始工作了。 Then you don't have to mess around with existing libraries or XPath.
这样,您就不必弄乱现有的库或XPath。
我结束了对RSS.net源代码的更改,以将所有自定义字段作为一个大的Dictionary进行了几行更改,现在一切就绪。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.