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