title: How can I get only the outer markup of an XML element?
body: <p>If I have an <code>XmlNode</code> like this </p>
  
  <pre><code>&lt;element attribute="value"&gt;
      Content
  &lt;/element&gt;
  </code></pre>
  
  <p>I can get its <code>InnerXml</code> ("<code>Content</code>"), but how can I get the opposite? That is, just the outer markup separated by its opening tag and closing tags:</p>
  
  <pre><code>&lt;element attribute="value"&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;/element&gt;
  </code></pre>
  
  <p>I want to exclude the inner xml, so the <code>OuterXml</code> property on the <code>XmlNode</code> class won't do.
  <br/>
  <br/>
  Do I have to build it manually by grabbing each piece and formatting them in a string? If so, besides the element's name, prefix and attributes, what other property can XML elements come with that I should remember to account for?</p>