XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("
http://gdata.youtube.com/feeds/videos?vq=philippines");
XmlNamespaceManager nsMgr = new XmlNamespaceManager(xmlDoc.NameTable);
nsMgr.AddNamespace("def", "
http://www.w3.org/2005/Atom");
XmlNodeList nodes = xmlDoc.SelectNodes("/def:feed/def:entry/def:id", nsMgr);
foreach (XmlNode node in nodes)
{
Response.Write(node.InnerXml + "<br/>");
}
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.