How to achieve this output with c# , uipath corewf package?

I need to replicate how UiPath writes a XAML for e.g. How do I write this below tag or any other XML tag for any other activity with C#?

<Variable x:TypeArguments="x:Int32" Name="ValueTwo">
<Variable.Default>
<Literal x:TypeArguments="x:Int32" Value="8" />
</Variable.Default>
</Variable>

we cannot see the tags. Please use from the editor the </> format button for code snippets

Updated for the tags. Thanks