C# Code for Downloading Stock Symbols z

http://www.jarloo.com/download-stock-symbols/

If your using C# you can easily get the XML data using LINQ:

?
1
2
3
4
5
6
7
8
9
10
11
 
XDocument doc = XDocument.Load(url);
 
var symbols = from s in doc.Root.Element( "symbols" ).Elements( "symbol" )
                 select new {Name = s.Attribute( "name" ).Value};
             
foreach (var symbol in symbols)
{
     Console.WriteLine(symbol.Name);
}

你可能感兴趣的:(download)