string ss = @"<IsValidAdminUserResponse><IsValidStatus><a:AdminMasterDC><a:AuthKey>Valid</a:AuthKey><a:RtnMessage>success</a:RtnMessage><a:EmailAddress>support@abc.com</a:EmailAddress><a:UserId>1</a:UserId><a:HubId>22</a:HubId></a:AdminMasterDC></IsValidStatus></IsValidAdminUserResponse>"; var reader = new StringReader(ss); var serializer = new XmlSerializer(typeof(IsValidStatu)); var instance = (IsValidStatu)serializer.Deserialize(reader); MessageBox.Show(instance.RtnMessage);
public class IsValidStatu { public string AuthKey { get; set; } public string RtnMessage { get; set; } public string EmailAddress { get; set; } public string UserId { get; set; } public string HubId { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)