This is the code we had before when we were reading it into a texbox. I want
to instead read this into a GridView
try
{
StringBuilder sb = new StringBuilder();
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("/interact/podcasts/rss/podcast.xml"));
XmlNodeList items = doc.SelectNodes("//item");
for (int i=0; i<items.Count ; i++)
{
sb.Append( string.Format( "<tr valign='top'><td><a href={0}><img
src='/images/interact/icon_podcast.gif' border=0></a></td><td><a
href={0}>{1}</a></td></tr><tr><td></td><td>{2}</td></tr><tr><td><img
src='/images/spacer.gif' width=1 height=3 border=0 alt=''></td></tr>"
, items[i].SelectSingleNode("enclosure").Attributes["url"].InnerText
, items[i].SelectSingleNode("title").InnerText
, items[i].SelectSingleNode("description").InnerText ) ) ;//"<br>"
+ items[i].SelectSingleNode("title").InnerText + "<br>" ) ;
}
Now I want to read teh sb.ToString to GridView...

Signature
dba123
> I need help in coding the following or if you can just point me in the right
> direction:
[quoted text clipped - 58 lines]
> <itunes:duration>8:27</itunes:duration>
> </item>
Prem Kumar - 28 Aug 2006 10:43 GMT
Hi
Not sure about this approach, but a try ..
Why don't u read the xml in a dataset, using the ReadXML method and once you
have the info in dataset, you could bind the necessary columns in the
Gridview.
Prem
> This is the code we had before when we were reading it into a texbox. I want
> to instead read this into a GridView
[quoted text clipped - 84 lines]
> > <itunes:duration>8:27</itunes:duration>
> > </item>