internal static string ReadTextElementAsTrimmedString(XmlElement element)
 {
     if (element == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
     }
     XmlReader reader = new XmlNodeReader(element);
     reader.MoveToContent();
     return XmlUtil.Trim(reader.ReadElementContentAsString());
 }