protected string ReadThisValue(string Path, string ValueSection) //OK { XmlNode n = GetPathNode(Path, false); try { if (n != null) { if (n.Attributes.GetNamedItem( ValueSection )!=null) { n = n.Attributes.GetNamedItem( ValueSection ); return n.Value; } for(int i=0; i < n.ChildNodes.Count; ++i) if (n.ChildNodes[i].LocalName == ValueSection) { return n.ChildNodes[i].InnerText; } } } catch { } return ""; }