Is there a way to get an XML serializer to add an element as an inline, rather than using the Value layout. I basically only have a giant list of structures, and I would like to add an inline element for each helper element that is included.
<main>
<item>
<value>1</value>
<name>Alphabet</name>
</item>
...
</main>
Basically I want to add:
<item Enabled="true">
if the block of elements is activated. Is there any way to do this?
source
share