Rsslibj is a compact and practical Java library dedicated to generate RSS. The size is only 25K, which can be downloaded from http://sourceforge.net/projects/rslibj/. JAR and it needs to use rsslibj. Set good HTTPSERVLETRESPONSE, then output XML via rsslibj
But this original file is problematic, you need to make changes
And go to the exml.jar file