RSS "path" problems

Discussion in 'ASP .Net' started by Lasse Edsvik, Sep 22, 2004.

  1. Lasse Edsvik

    Lasse Edsvik Guest

    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
    Lasse Edsvik, Sep 22, 2004
    #1
    1. Advertising

  2. Lasse Edsvik

    Lasse Edsvik Guest

    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" <> wrote in message
    news:...
    > 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
    >
    >
    Lasse Edsvik, Sep 22, 2004
    #2
    1. Advertising

  3. Lasse Edsvik

    Lasse Edsvik Guest

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


    "Lasse Edsvik" <> wrote in message
    news:%...
    > 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" <> wrote in message
    > news:...
    > > 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
    > >
    > >

    >
    >
    Lasse Edsvik, Sep 22, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    751
    SpaceGirl
    Feb 25, 2005
  2. Motta
    Replies:
    1
    Views:
    518
    Andy Dingley
    Jun 9, 2004
  3. Jake Barnes
    Replies:
    1
    Views:
    419
    Andy Dingley
    Nov 14, 2005
  4. Scott Gordo
    Replies:
    5
    Views:
    693
  5. Jonathan Groll
    Replies:
    1
    Views:
    258
    Kouhei Sutou
    Jun 27, 2009
Loading...

Share This Page