RSS "path" problems

L

Lasse Edsvik

Hello

Im having problems displaying an RSS feed that looks like this:

<rss>
<channel>
<item>
<title>Something</title>
</item>
</channel>
</rss>


i want to display all "items" in a datagrid

i have this:

void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(http://something.com/rrs.xml);
RssFeed.DataSource = ds.Tables[0];
RssFeed.DataBind();
}

how to get correct results in my datagrid?

TIA
/Lasse
 
L

Lasse Edsvik

correction:

<rss>
<channel>
<description>This is .......</description>
<item>
<title>Something</title>
</item>
<item>
<title>Something2</title>
</item>
</channel>
</rss>


i want to display all "items" in a datagrid

i have this:

void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(http://something.com/rrs.xml);
RssFeed.DataSource = ds.Tables[2];
RssFeed.DataBind();
}

not sure how to avoid the description tags and all, and only display each
"item"
 
L

Lasse Edsvik

fixed....... ds.Tables[3]


Lasse Edsvik said:
correction:

<rss>
<channel>
<description>This is .......</description>
<item>
<title>Something</title>
</item>
<item>
<title>Something2</title>
</item>
</channel>
</rss>


i want to display all "items" in a datagrid

i have this:

void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(http://something.com/rrs.xml);
RssFeed.DataSource = ds.Tables[2];
RssFeed.DataBind();
}

not sure how to avoid the description tags and all, and only display each
"item"






Lasse Edsvik said:
Hello

Im having problems displaying an RSS feed that looks like this:

<rss>
<channel>
<item>
<title>Something</title>
</item>
</channel>
</rss>


i want to display all "items" in a datagrid

i have this:

void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(http://something.com/rrs.xml);
RssFeed.DataSource = ds.Tables[0];
RssFeed.DataBind();
}

how to get correct results in my datagrid?

TIA
/Lasse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top