I need to create xml as below using jaxb. I know how to create simle xml.But I have no idea regarding this nested xml.Please help me out with this. Thank you all
<whens>
<when>
<whenEntity1_Rule1>
<whenAttribute1_Rule1>
<whenCondition1_Rule1/>
<whenValue1_Rule1>
<literalvalue1_Rule1/>
<whenEntity1_expression1_Rule1/>
<whenAttribute1_expression1_Rule1/>
</whenValue1_Rule1>
</whenAttribute1_Rule1>
<whenAttribute2_Rule1>
<whenCondition2_Rule1/>
<whenValue2_Rule1>
<literalvalue2_Rule1/>
<whenEntity2_expression1_Rule1/>
<whenAttribute2_expression1_Rule1/>
</whenValue2_Rule1>
</whenAttribute2_Rule1>
<whenAttribute3_Rule1>
<whenCondition3_Rule1/>
<whenValue3_Rule1>
<literalvalue3_Rule1/>
<whenEntity3_expression1_Rule1/>
<whenAttribute3_expression1_Rule1/>
</whenValue3_Rule1>
</whenAttribute3_Rule1>
</whenEntity1_Rule1>
</when>
<whens>