473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

rendering RSS XML as HTML?

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.&lt;br /&gt;

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

Dec 21 '06 #1
1 2220
<xsl:value-of select="description" disable-output-escaping="yes" />

Dec 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Christopher Benson-Manica | last post by:
I have the following document, at http://ataru.gomen.org/file/test.html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head>...
4
by: Nacho Nachev | last post by:
Hello, AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output HTML that is compliant with the client browser or at least stick to HTML 4 specification or IE. This seems...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
0
by: Jeff Morgan | last post by:
I have an application that runs on ASP.NET. We have been working through performance testing and it appears that at about 40-50 users, I start to get CPU bound. The application is a three form,...
3
by: ramesh | last post by:
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into...
0
by: Juan R. | last post by:
Since the idea of encoding mathematics using MathML is being very far from popular due to a number of factors -expensive tools, bad accesibility of generated code, unusual verbosity, lack of...
2
by: Giedrius | last post by:
hi, i have an idea to make admin tool on home computer, that would generate html files using some kind of templates and database data and put these generated html files to public web server, witch...
1
by: Ricardo Quintanilla G. | last post by:
how to override the rendering method of a whole asp.net applicaction? i want to not include spaces between html elements. As example, then rendering produce that: == == == == <html> <body>...
5
by: Andreas Bergmeier | last post by:
Hi. Does anybody know whether html rendering is available on page level? I know the xhtmlConformance setting in the web.config - but I'd like such a configurability on page level because I have...
1
by: =?Utf-8?B?TUNN?= | last post by:
Is it possible to have .NET controls render as HTML 4.01 Strict compliant? In web.config, there is xhtml conformance, but that does not provide an option for HTML 4.01.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.