I've this element in my class
[XmlArray("photos")]
public List<zPhoto> EntityPhotos;
when I serialize my class I get this :
<photos>
<zPhoto id="73102" type="a" />
<zPhoto id="73102" type="b"/>
<zPhoto id="73105" type="a" />
<zPhoto id="73105" type="b" />
</photos>
In order to simplify xpath query I want to add a new directive that will give me a result like
<photos count="2" >
<zPhoto id="73102" type="a" />
<zPhoto id="73102" type="b"/>
<zPhoto id="73105" type="a" />
<zPhoto id="73105" type="b" />
</photos>
I want to add trival attributes name and set the value. is it possible?