public bool ValueExists(string Path, string ValueSection) // OK
{
XmlNode n = GetPathNode(Path, false);
if (n!=null)
{
if ((n.ChildNodes.Count>0) && (n.HasChildNodes))
for (int i=0; i<n.ChildNodes.Count; ++i)
if (n.ChildNodes[i].LocalName == ValueSection)
return true;
return n.Attributes.GetNamedItem( ValueSection ) != null;
}
return false;
}