Trying to read from an XML file that I have on my pc. The function uses a string value to pass the static function. I want to each transaction, create a so called "node" I guess. I want to say Array of Arrays since I come from C++/Java background. Every List has a list of things in it. List of Transactions, and in everyone transaction I have the ticker value, action value, date value, and shares value corresponding with that transaction. This is what I have so far.
XML File
<stocks>
<transaction>
<ticker>GOOG</ticker>
<action>buy</action>
<date>20071116</date>
<shares>44</shares>
</transaction>
<transaction>
<ticker>IBMX</ticker>
<action>buy</action>
<date>20080104</date>
<shares>350</shares>
</transaction>
C# Code
public static void readXML(string filename)
{
XmlTextReader reader = new XmlTextReader(filename);
List<List<string>> transList = new List<List<string>>();
XmlNode node =
foreach(var transaction in reader())
{
transList.Add(new Transaction(node.get ticker,node.action,node.date,node.shares)
}