title: Innertext from XElement?
body: <p>I'm having a hard time getting the correct value from the innertext of an XElement.
  First, here's the XML that I'm using.  This is a copy of our production data that results from a process in our workflow.  In other words, I can't change the XML, I can only parse it.  The element whose innertext I'd like to get has data inside that looks like XML, but it isn't.  It is straight text from the tool that produced the XML.  The element is called <code>&lt;creatorshapeutildata</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/2aUtd.png" alt="Picture of XML data"></p>
  
  <p>Here is the line of code I've tried:</p>
  
  <pre><code>CreatorShapeUtilData = element.Descendants("creatorshapeutildata").Single().Value;
  </code></pre>
  
  <p>I've also tried this:</p>
  
  <pre><code>CreatorShapeUtilData = element.Descendants("creatorshapeutildata").First().Value;
  </code></pre>
  
  <p>I've also tried this:</p>
  
  <pre><code>CreatorShapeUtilData = element.Element("creatorshapeutildata").Value;
  </code></pre>
  
  <p>Unfortunately, the value that gets returned in every case looks like this: </p>
  
  <p><code>33012-1true#FFFF003#FFFFFF2743337743358</code></p>
  
  <p>I need the value returned to look like this:</p>
  
  <pre><code>"&lt;creatorData type="object"&gt;&lt;type type="int"&gt;33012&lt;/type&gt;..."
  </code></pre>
  
  <p>This piece I'm working on is part of a larger program that uses XDocument, XElement, etc.  I know an XmlElement has an InnerText property, but I think XElement does not, since I can't seem to find it in Intellisense.</p>
  
  <p>So, is there any possible way to grab the exact text between the <code>creatorshapeutil</code> tags?</p>