locked
how to use other site rss feed to our site RRS feed

  • Question

  • User1890196321 posted

    how to use other site rss feed to our site and display them i try many thing but not sucess.

    Monday, May 20, 2013 4:54 AM

Answers

  • User1557244751 posted
    r = XmlReader.Create("http://yournamegoeshere.spaces.live.com/photos/feed.rss");
    albums = SyndicationFeed.Load(r);
    r.Close();
    foreach (SyndicationItem album in albums.Items)
    { 
    
    
    // album.links[0].URI points to this album page on spaces.live.com
    // album.Summary (not shown) is an HTML block with thumbnails of the album pics
    cell.Text= string.Format("<a href='{0}'>{1}</a>", album.Links[0].Uri, album.Title.Text);
    albumRSS = GetAlbumRSS(album);
    r = XmlReader.Create(albumRSS);
    photos = SyndicationFeed.Load(r);
    r.Close();
    foreach (SyndicationItem photo in photos.Items)
    {
    // photo.Summary is an HTML block with a thumbnail of the pic
          cell.Text = string.Format("{0}", photo.Summary.Text);
    }
     
    }
    
    

    http://blogs.msdn.com/b/steveres/archive/2008/01/20/using-syndicationfeed-to-displaying-photos-from-spaces-live-com.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 20, 2013 6:00 AM