hello,
im doing my first experiment w/ RSS & ASP.NET. could use a bit of help.
i have a livejournal site blog here:
http://nexus9.livejournal.com/
and i have its RSS xml here:
http://nexus9.livejournal.com/data/rss
....i want to render this as HTML on my own personal site. to do this i
put an Xml web control on my .aspx like so:
<asp:Xml ID="xmlEntries" TransformSource="test.xslt"
Runat="server"/>
....and then in my .cs i loaded the above like so:
//get rss response
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("http://nexus9.livejournal.com/data/rss");
WebResponse response = request.GetResponse();
//read response to stream
Stream stream = response.GetResponseStream();
XmlDocument xml = new XmlDocument();
xml.Load(stream);
if (xml != null)
xmlEntries.Document = xml;
response.Close();
....this works. w/ my .XLST file i can start rendering it via templates,
like so:
<!-- one journal entry -->
<xsl:template match="item">
<b><xsl:value-of select="title"/></b><br/>
<xsl:value-of select="pubDate"/><br/><br/>
<xsl:value-of select="description"/><br/><br/><br/>
</xsl:template>
....BUT -- the html-markup "description" content doesnt render in
browser as HTML, its rendered as literal text. looking at the RSS'
source in IE, it does appear to have converted all the html tag
characters into text, like so:
i think ill use this as my new, perm LJ account. other was too
business.<br />
so... any idea how i can instruct either my .cs or .xslt to convert the
chars back into symbols, so that the browser renders it as HTML and not
as non-markup text?
thanks!
matt