Click here to Skip to main content
12,067,652 members (29,561 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Samples » Downloads

Stats

38.8K views
627 downloads
52 bookmarked
Posted

A very standard, powerful and easy to use Sample and Library for working on RSS 2.0

, 18 Feb 2005 MIT
With this library, you can easily create some RSS 2.0 files for your site and/or use some RSS 2.0 files from other sites into your site.
namespace IranianExperts.RSS
{
	public class RSSRoot
	{
		private System.IO.Stream _outputStream;

		private RSSImage _image;
		private RSSChannel _channel;
		private RSSItemCollection _items = new RSSItemCollection();

		/// <summary>
		/// The XML context will be written in this stream.
		/// </summary>
		public System.IO.Stream OutputStream
		{
			get
			{
				return(_outputStream);
			}
			set
			{
				_outputStream = value;
			}
		}

		/// <summary>
		/// Image Tag.
		/// </summary>
		public RSSImage Image
		{
			get
			{
				return(_image);
			}
		}

		/// <summary>
		/// Channel Tag.
		/// </summary>
		public RSSChannel Channel
		{
			get
			{
				return(_channel);
			}
		}

		/// <summary>
		/// Items Tag.
		/// </summary>
		public RSSItemCollection Items
		{
			get
			{
				return(_items);
			}
		}

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="channel"></param>
		/// <param name="outputStream"></param>
		public RSSRoot(RSSChannel channel, System.IO.Stream outputStream)
		{
			_channel = channel;
			_outputStream = outputStream;
		}

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="channel"></param>
		/// <param name="image"></param>
		/// <param name="outputStream"></param>
		public RSSRoot(RSSChannel channel, RSSImage image, System.IO.Stream outputStream)
		{
			_image = image;
			_channel = channel;
			_outputStream = outputStream;
		}

		#region Support
		public static string Owner
		{
			get
			{
				return("Dariush Tasdighi - From Tehran, Iran");
			}
		}

		public static string Version
		{
			get
			{
				return("1.0.0");
			}
		}

		public static string Support
		{
			get
			{
				return("Dariush@IranianExperts.com;DariushT@GMail.com;DariushTasdighi@Yahoo.com");
			}
		}

		public static string Homepage
		{
			get
			{
				return("http://www.IranianExperts.com;http://groups.yahoo.com/group/IranianExperts");
			}
		}

		public static string UpdatedDate
		{
			get
			{
				return("14 Feb 2005");
			}
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Dariush Tasdighi
Web Developer Sematec Ins.
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
My experiences are:

HTML 5.0, CSS 3.0
JQuery, Angular JS, Bootstrap

MVC 5.0, WEB API, c#

My Site URLs:
http://www.IranianExperts.ir
http://www.IranianExperts.com

My Yahoo Group URL: http://groups.yahoo.com/group/iranianexperts

Mobile: 0098-912-108-7461
Address: Tehran, Tehran, Iran

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.160208.1 | Last Updated 18 Feb 2005
Article Copyright 2005 by Dariush Tasdighi
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid