title: "The ':' character, hexadecimal value 0x3A, cannot be included in a name"
body: <p>I have a code which will read some xml file(s). I tried different ways to solve this problem, but couldn't. Also I tried to code like this:</p>
  
  <pre><code>Namespace my = "http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-01-11T08:31:30";                
  XElement myEgitimBilgileri = XDocument.Load(@"C:\25036077.xml").Element("my:"+ "Egitim_Bilgileri"); 
  </code></pre>
  
  <p>But all the time the same mistake. Here is the original:</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
  {                               
      XElement myEgitimBilgileri =    
      XDocument.Load(@"C:\25036077.xml").Element("my:Egitim_Bilgileri");
  
      if (myEgitimBilgileri != null)
      {
          foreach (XElement element in myEgitimBilgileri.Elements())
          {
              Console.WriteLine("Name: {0}\tValue: {1}", element.Name, element.Value.Trim());
          }
      }
  
      Console.Read();
  }
  </code></pre>
  
  <p>Here is a path of my xml file:</p>
  
  <pre><code>&lt;my:Egitim_Bilgileri&gt;
          &lt;my:egitimler_sap&gt;
              &lt;my:sap_eduname&gt;&lt;/my:sap_eduname&gt;
              &lt;my:sap_edufaculty&gt;&lt;/my:sap_edufaculty&gt;
              &lt;my:sap_eduprofession&gt;&lt;/my:sap_eduprofession&gt;
              &lt;my:sap_diplomno&gt;&lt;/my:sap_diplomno&gt;
              &lt;my:sap_edulevel&gt;&lt;/my:sap_edulevel&gt;
              &lt;my:sap_edustartdate xsi:nil="true"&gt;&lt;/my:sap_edustartdate&gt;
              &lt;my:sap_eduenddate xsi:nil="true"&gt;&lt;/my:sap_eduenddate&gt;
          &lt;/my:egitimler_sap&gt;
      &lt;/my:Egitim_Bilgileri&gt;
  </code></pre>
  
  <p>and this is the path of my namespace in XML</p>
  
  <pre><code>xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-01-11T08:31:30"
  
  xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-01-23T00:43:17"
  </code></pre>