Q: How to get value of a specific element in xml in c# I have a xml file in below format 
I want to fetch the value of Child1
When I am using below code it is providing a null value. Please help
XDocument xmlDoc = XDocument.Load(fileName);
 XElement po = xmlDoc.Root.Element("Root");
 XElement el1 = po.Element("Child1");


A: Use this:
xmlDoc.Descendants("Child1").First();

