This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
You can run a simple style sheet to filter out the empty element. The below one should work for you.
Joined: Mar 29, 2006
Sir , Thanks a lot for your reply.
But i am new to XML so can you please tell me that how to run stylesheet.
Joined: May 24, 2003
Download Xalan for Java the below URL explains how to run the stylesheet. http://xml.apache.org/xalan-j/commandline.html You can use any XSLT parser, all you have to do is consult the doc on how to run them. I haven't used the xsl parser that comes with jdk