/// Returns the InnerText as Result of the selected tag
///
///
///
public string GetEntry(string param)
{
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.Load(_configFile);
System.Xml.XmlNodeList xmlNodes = xmlDoc.SelectNodes(param);
if (xmlNodes.Count == 1)
{
return xmlNodes.Item(0).InnerText;
}
else
{
return null;
}
}
No comments:
Post a Comment