document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. using System;
  2. using System.Text;
  3. using System.Xml;
  4.  
  5. namespace ParsingXml
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {            
  11.             XmlReader xmlReader = XmlReader.Create("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml");
  12.             while(xmlReader.Read())
  13.             {
  14.                 if((xmlReader.NodeType == XmlNodeType.Element) && (xmlReader.Name == "Cube"))
  15.                 {
  16.                     if(xmlReader.HasAttributes)
  17.                         Console.WriteLine(xmlReader.GetAttribute("currency") + ": " + xmlReader.GetAttribute("rate"));                    
  18.                 }
  19.             }
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
');