title: System.Xml.XmlException: The '=' character, hexadecimal value 0x3D, cannot be included in a name
body: <p>When I am trying to load the XDocument from the stringReader i get this error:</p>
  
  <pre><code>System.Xml.XmlException: The '=' character, hexadecimal value 0x3D, cannot be included in a name. Line 1, position 496.
     at System.Xml.XmlTextReaderImpl.Throw(Exception e)
     at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
     at System.Xml.XmlTextReaderImpl.ParseElement()
     at System.Xml.XmlTextReaderImpl.ParseElementContent()
     at System.Xml.XmlTextReaderImpl.Read()
     at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
     at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
     at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
     at System.Xml.Linq.XDocument.Load(TextReader textReader, LoadOptions options)
     at Rextester.Program.Main(String[] args)
  </code></pre>
  
  <p>Below is the piece of code using which i'm trying to Load:</p>
  
  <pre><code> public class Program
      {
          public static void Main(string[] args)
          {
               String body = "&lt;ContactBundleMaintainRequestMessage_sync&gt;&lt;BasicMessageHeader&gt;&lt;ID&gt;b4cf2093e85242259f0b1b9122b75210&lt;/ID&gt;&lt;/BasicMessageHeader&gt;&lt;Contact&gt;&lt;UUID&gt;4211feec-464c-4bd8-9490-f1041ed95504&lt;/UUID&gt;&lt;LifeCycleStatusCode&gt;2&lt;/LifeCycleStatusCode&gt;&lt;GivenName&gt;Carlo&lt;/GivenName&gt;&lt;MiddleName /&gt;&lt;FamilyName&gt;DiBrigida&lt;/FamilyName&gt;&lt;Relationship&gt;&lt;RelationshipBusinessPartnerUUID&gt;00163e11-a664-1ee8-85c3-74c6366e0886&lt;/RelationshipBusinessPartnerUUID&gt;&lt;RoleCode&gt;BUR027-2&lt;/RoleCode&gt;&lt;/Relationship&gt;&lt;GroupwareSubscriptionactionCode="04"&gt;&lt;EmployeeUUID&gt;00163e11-a664-1ee8-85c3-74c6366e0886&lt;/EmployeeUUID&gt;&lt;/GroupwareSubscription&gt;&lt;/Contact&gt;&lt;/ContactBundleMaintainRequestMessage_sync&gt;";
               StringReader read = new StringReader(body);
               XDocument xDoc = XDocument.Load(read);
  
          }
      }
  </code></pre>
  
  <p>Could you please help me on resolving this. I googled a lot, but didn't get any solution or explanation where exactly its going wrong</p>