You've perfectly demonstrated one motivation for this proposal: your string literal is incorrect. Verbatim strings in C# require " to be escaped, your string should be:
var xml = @"
<element attr=""content"">
<body>
</body>
</element>";