I have these classes
public class ProdutosServicos
{
public List<Produto> Produto { get; set; }
}
public class Produto
{
public string Descricao { get; set; }
public CodigoTipo Codigo { get; set; }
public string Quantidade { get; set; }
public string Unidade { get; set; }
public string ValorUnitario { get; set; }
}
ANd the xml is being serialized like this:
<ProdutosServicos>
<Produto>
<Produto>
...
</Produto>
</Produto>
</ProdutosServicos>
But i would like to generate like this:
<ProdutosServicos>
<Produto>
...
</Produto>
</ProdutosServicos>
I couldn't find any Xml Attribute to put on a property to "Remove" the first Produto node during the serialization.
Any ideas on how to accomplish this?
Thank you.