title: Problem with StringBuilder and XML Literals
body: <p>I'm having a problem using XML literals with a StringBuilder in VB 2008. If I use this code everything is fine.</p>
  
  <pre><code>Dim html As New System.Text.StringBuilder
  
  html.Append(&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;)
  
  MsgBox("hello")
  </code></pre>
  
  <p>Now the problem is I want to wrap HTML around something that is generated in code.</p>
  
  <pre><code>html.Append(&lt;html&gt;&lt;body&gt;)
  
  msgbox("nothing happens")
  </code></pre>
  
  <p>When the HTML doesn't have the corresponding ending tag, it acts like it goes beyond the ) and keeps looking for it. </p>
  
  <p>Is there something I am doing wrong here?</p>