You can use
XPath
instead of querying it like you did above. You can avoid writing those cases and make it short and simple.
XmlTextReader
should be generally used if you have a huge XML file.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(strPath);
XmlNode node= xmlDoc.SelectSingleNode("/CompanyDetails");
strCompanyName = node[0].InnerText;
strAddress1 = node[1].InnerText;
If you want a specific element, lets say CompanyName,
then your XPath will be like this :
"/CompanyDetails/CompanyName"
Update : Added "InnerText" after node[0] and node[1].