I have a REST service written in vb.net that returns data using the built in serializer, so if I return my data from a Class defined like this:
Public Class Minion
Public Property Name As String = ""
Public Property ID As String = ""
End Class
my xml will return like this:
<?xml version="1.0"?>
<Minion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Testv3">
<ID>1</ID>
<Name>Kevin</Name>
</Minion>
But how can I add a prefix to my xml elements so I could see something like:
<myLevel1:Minion>
<mylevel2:ID>
Would I need to serialize the data myself to do this?