I am trying to generate/serialize an XML file with custom tag in C# and even though I have tried multiple solutions, I have not been able to come up with a valid solution, I will appreciate any contribution. The file should look like:
<?xml version="1.0" encoding="utf-8"?>
<x:Todo>
<Id>1</Id>
<x:UserId>27</UserId>
</Todo>
The issue is I have no idea how to add x: to the tag in specifics nodes.
Thank in advance for all your contributions. Me