سلام بر تمامی برنامه نویسان عزیز 😉 در این پست کد Process RSS با استفاده از XmlReader در سی شارپ #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد Process RSS با استفاده از XmlReader در سی شارپ #C :
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Xml;
using System.IO;
class MainClass
{
static void Main(string[] args)
{
WebClient client = new WebClient();
Stream rssFeedStream = client.OpenRead("http://yourRssFeedURL");
XmlReader reader = XmlReader.Create(rssFeedStream);
reader.MoveToContent();
while (reader.ReadToFollowing("item"))
{
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Xml;
using System.IO;
class MainClass
{
static void Main(string[] args)
{
WebClient client = new WebClient();
Stream rssFeedStream = client.OpenRead("http://yourRssFeedURL");
XmlReader reader = XmlReader.Create(rssFeedStream);
reader.MoveToContent();
while (reader.ReadToFollowing("item"))
{