public static T FromString(string xml)
 {
     return(DataContractXmlSerializer.FromString <T>(xml));
 }
 public static string ToString(T obj)
 {
     return(DataContractXmlSerializer.ToString(obj));
 }