title: "An error occurred while parsing EntityName" after grabbing content from valid XML
body: <p>I am reading an XML string with XDocument</p>
  
  <pre><code>XmlReader reader = XmlReader.Create(new StringReader(xmltext));
          reader.Read();
          XDocument xdoc = XDocument.Load(reader);
  </code></pre>
  
  <p>Then I grab the content of some tags and put them within tags in a different string.
  When I try to Load this string in the same way I did with the first, I get an error "An error occurred while parsing EntityName. Line 1, position 344.". </p>
  
  <p>I think it should be parsed correctly since it has beem parsed before so I guess I am missing something here.</p>
  
  <p>I am reading and copying the content of the first XML with <code>(string)i.Element("field")</code>.</p>
  
  <p>I am using .net 4</p>