/// <summary> /// /// </summary> /// <returns></returns> public static int IntFromXmlAttribute(System.Xml.XmlNode pNode, string pAttName) { if (pNode.Attributes[pAttName] == null) { throw new System.ApplicationException("Attribute: " + pAttName + " not found in node " + pNode.ToString()); } return(int.Parse(pNode.Attributes[pAttName].Value, System.Globalization.CultureInfo.InvariantCulture.NumberFormat)); }
/// <summary> /// /// </summary> /// <returns></returns> public static float FloatFromXmlAttribute(System.Xml.XmlNode pNode, string pAttName) { if (pNode.Attributes[pAttName] == null) { throw new System.ApplicationException("Attribute: " + pAttName + " not found in node " + pNode.ToString()); } return(FloatFromString(pNode.Attributes[pAttName].Value)); }