/// <summary> /// Adds an Item to the Transaction. /// </summary> /// <param name="reader"></param> /// <param name="transaction"></param> private static void addItem(XmlTextReader reader, ITransaction transaction) { while (reader.Read() && (reader.NodeType != XmlNodeType.EndElement) && reader.Name != "Item") { if (reader.NodeType == XmlNodeType.Text && reader.HasValue) { transaction.AddItem(new Item(int.Parse(reader.Value))); //Console.WriteLine(reader.Value); } } }