Hi Alex!
Thanks for your answer. the node that gets serialized is an Array. If the array does not have any children, they are not written but parent itself is (the enclosing array) following is an example:
<imageFormats> node with contents:
<field section="section1" inputType="Image" tag="image" templateName="background" displayName="Image" contentType="Text" required="true">
<imageFormats>
<imageFormat name="article" width="748" height="374"/>
<imageFormat name="grid" width="198" height="148"/>
<imageFormat name="favorite" width="148" height="75"/>
</imageFormats>
</field>
<imageFormats> node with no contents (shouldnt exist)
<field section="section1" inputType="TextField" tag="location" templateName="venue" displayName="Location" contentType="Text" required="true">
<imageFormats/>
</field>
I´m still learning the library, but couldn´t find the error.
Thanks!!