public virtual decimal ReadElementContentAsDecimal () { try { return XQueryConvert.StringToDecimal (ReadElementContentAsString ()); } catch (FormatException ex) { throw XmlError ("Typed value is invalid.", ex); } }