from FAQ:
How can I stop Betwixt writing out empty elements?
An empty element (for this discussion) is one which has no
attributes and no child elements which are not empty. If you want to
stop Betwixt writing out empty elements, then call:
beanWriter.setWriteEmptyElements(false);
(before writing your bean).
----
I verified that writing an empty property the key is not written but
writing an empty List Betwixt write the list with no elements.
example:
public class VARIABLE {
private ArrayList VARIABLES;
public ArrayList getVARIABLES() {
return VARIABLES;
}
public void setVARIABLES(ArrayList VARIABLES) {
this.VARIABLES = VARIABLES;
}
}
with VARIABLES = null the output XML is:
<VARIABLES/>
why can't betwixt go over?
Thank you very much for your reply in advance.
Luca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]