I have xml like:This is a part of XML

My XML file is very long and I need to traverse through the whole file and need to search for a element which has no value and then need to delete that element. Any help?
Thank you in advance,