/// <summary> Returns a "standardized" equivalent of the given message string.  For delimited
 /// messages, the returned value is the shortest string that has an equivalent
 /// meaning in HL7.  For XML-encoded messages, the returned value is equivalent XML output
 /// using a standard pretty-print format.  An automatic determination is made about whether
 /// the given string is XML or ER7 (i.e. traditionally) encoded.
 /// </summary>
 /// <param name="message">an XML-encoded or ER7-encoded message string
 /// </param>
 public static System.String standardize(System.String message)
 {
     System.String result   = null;
     System.String encoding = parser.getEncoding(message);
     if (encoding.Equals("XML"))
     {
         result = standardizeXML(message);
     }
     else
     {
         result = standardizeER7(message);
     }
     return(result);
 }