Finally got solution
XmlDocument doc = new XmlDocument();
doc.Load(filePath);
XmlNode PackagesListNode = doc.SelectSingleNode("/Packages");
XmlNodeList Packages = PackagesListNode.SelectNodes("Package");
foreach (XmlNode node in Packages)
{
TableLoadInstruction instruction = new TableLoadInstruction();
instruction.PackageName = node.SelectSingleNode("PackageName").InnerText;
instruction.Sequence = Convert.ToInt16(node.SelectSingleNode("SequenceID").InnerText);
instruction.AlwaysRun = Convert.ToBoolean(node.SelectSingleNode("AlwaysRun").InnerText);
loadInstructions.Add(instruction);
}
1
solved Parse xml in c#.net [duplicate]