title: Unable to deserialize from xml file
body: <p>explained.Getting exception when deserializing . Can anybody help me what has gone wrong for the reason. I have created a class for the data to be extracted from the xml file. But when deserialixing back to object I am getting exeption.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;env:Body&gt;
  &lt;n1:GetPlugStatusListResponse xmlns:n1="http://tempuri.org/SPSuiteWebService/StandService"&gt;
    &lt;n1:GetPlugStatusListResponse xmlns:n2="http://tempuri.org/GetPlugStatusListResponse.xsd"&gt;
  &lt;n2:StoreList&gt;
  &lt;n2:Store&gt;  
  &lt;n2:AreaType&gt;13&lt;/n2:AreaType&gt;
  &lt;n2:AreaName&gt;東京都&lt;/n2:AreaName&gt;
  &lt;n2:StoreCd&gt;91110002&lt;/n2:StoreCd&gt;
  &lt;/n2:Store&gt;    
  &lt;n2:Store&gt;
  &lt;/n2:Store&gt;
   ...
  &lt;/n2:StoreList&gt;
  
  
  
  
      public static List&lt;Store&gt; ParseStoreList(string fileName) 
        {
  
            // Init
            List&lt;Store&gt; listStoreList = new List&lt;Store&gt;();
  
                // Parse...
                using (XmlReader xmlReader = XmlReader.Create(fileName))
                {
                    XmlSerializer EventSerializer = new XmlSerializer(typeof(Store));
  
  
                    while (xmlReader.ReadToFollowing("n2:Store"))
                    {
                        Store storeObject = (Store)EventSerializer.Deserialize(xmlReader.ReadSubtree());
                        listStoreList.Add(storeObject);
  
                    }
  
                    xmlReader.Close();
                }
  
  
  
  
            // Return value
            return listStoreList;
  
        }
  
      public static List&lt;PlugListData&gt; ParsePlugList(string fileName)
      {
          // Init
          List&lt;PlugListData&gt; listPlugList = new List&lt;PlugListData&gt;();
  
          // Parse...
          using (XmlReader xmlReader = XmlReader.Create(fileName))
          {
              XmlSerializer EventSerializer = new XmlSerializer(typeof(Store));
  
              // Parse XML - "Event" nodes...
              while (xmlReader.ReadToFollowing("n2:PlugStatus"))
              {
                  PlugListData pluglistObject = (PlugListData)EventSerializer.Deserialize(xmlReader.ReadSubtree());
                  listPlugList.Add(pluglistObject);
              }
  
              // Cleanup...
              xmlReader.Close();
          }
  
          // Return value
          return listPlugList;
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/B3hZC.png" alt="enter image description here"></p>