public static double Double(string nodeName) { if (XmlUtils.node.SelectSingleNode(nodeName) != null) { return Convert.ToDouble(XmlUtils.node.SelectSingleNode(nodeName).InnerText); } return -1; }