This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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