How to fetch data from a xml string - C# : I have one class like below

    namespace CustomerData
      {
       [Serializable]
      public class Customer
        { 
        [JsonProperty(PropertyName = "u_additional_DeskNumber ")]
        public string DeskNumber { get; set; }
        [JsonProperty(PropertyName = "u_additional_customerid")]
         public string CustomerID{ get; set; }
       }
      }

I am fetching data from Database and mapping to this Customerclass. From Database DeskNumber will return in either following format.Db data type for desknumber is nvarchar

   
   **Format 1.**

       <AdditionalInfo><Number>164</Number></AdditionalInfo>

**Format2**

     AdditionalInfo><Code>GLW51</Code><Lang>GLW51</LangCode><TzCode>GLW51</TzCode></AdditionalInfo>

If data returns Format1 ,i need to return value under Number tag (ie .164).Value under Number tag will be different at different time. If the value returned from databse is in any other format other than Format 1,then value should set as blank.

I am using following generic method for Mappaing data reader to Corresponding Classes

         private static List<T> MapDataToEntity<T>(IDataReader dr) where T : new()
        {
            Type businessEntityType = typeof(T);
            List<T> entitys = new List<T>();
            Hashtable hashtable = new Hashtable();
            PropertyInfo[] properties = businessEntityType.GetProperties();

            foreach (PropertyInfo info in properties)
            {
                hashtable[info.Name.ToUpper()] = info;
            }

            while (dr.Read())
            {
                T newObject = new T();
                for (int index = 0; index < dr.FieldCount; index++)
                {
                    PropertyInfo info = (PropertyInfo)
                                        hashtable[dr.GetName(index).ToUpper()];
                    if ((info != null) && info.CanWrite)
                    {
                        info.SetValue(newObject, dr.GetValue(index), null);
                    }
                }
                entitys.Add(newObject);
            }

            dr.Close();
            return entitys;
        }
   
      
So i have following questions,
  
 1.How can i find value under <Nubmer></Number> from this below string

     <AdditionalInfo><Number>164</Number></AdditionalInfo>
2. How to add a logic that id its not in above format,then it should blank.

3.Where i need to pu this logic,In Set Method of DeskNumber ??

Can anyone help me on this with a sample code 