tags:

views:

38

answers:

0
<Eedata>
   <FName> ABC </FName>
   <MName> R </MName>
   <LName> XYZ </LName>
   <Hrs/>
</Eedata>

I want to remove the empty tags from xml in Java, so the xml will look like below

<Eedata>
   <FName> ABC </FName>
   <MName> R </MName>
   <LName> XYZ </LName>
</Eedata>

Same question was asked in this post here http://stackoverflow.com/questions/1687203/java-remove-empty-xml-tags , but does anyone know any other solution than that?