Guest User

Untitled

a guest
May 13th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. how to pull xml data from radio station API using C#
  2. XDocument doc=XDocument.Load(string uri);
  3.  
  4. XDocument doc = XDocument.Load("http://api.sr.se/api/rightnowinfo/Rightnowinfo.aspx?unit=164");
  5.  
  6. foreach (var t in doc.Root.Descendants())
  7. {
  8. Console.WriteLine(t);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment