Hi Raj,
I am assuming you are using message mapping and content conversion subsequently for creating the records for each node. If so, have you used mapWithDefault for both nodes and fields to ensure that rows and columns are created even there is no data with the input.
Regards,
Sanjeev.