using System.Collections.Generic;
public static void Main()
var inputXML = @"<elementList xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
var ItemList = new List<dynamic>();
var doc = XDocument.Parse(inputXML);
var xmlnode = doc.Descendants("Node");
foreach(var item in xmlnode)
itemA = item.Element("NodeA").Value,
itemB = item.Element("NodeB").Value
Console.WriteLine(ItemList.Count());