<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="RssReader" %>
Rss Reader
File: Default.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
public partial class RssReader : System.Web.UI.Page
{
protected void btnRead_Click(object sender, EventArgs e)
{
string xmlUrl = drpFeeds.SelectedValue;
XPathDocument xpdoc = new XPathDocument(xmlUrl);
XPathNavigator xnav = xpdoc.CreateNavigator();
myXml.XPathNavigator = xnav;
string xslFilename = drpTemplates.SelectedValue;
myXml.TransformSource = xslFilename;
}
}
File: RssTransform1.xsl
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
File: RssTransform2.xsl
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">