remove empty nodes from the FOrm XML file