by using this code i want to create below xml file. but in the above program values are hard coded. But in my case values may change (except headings). For heading i have to use properties file(struts). but i don't know how to use properties file and how to iterate values by using arraylist or any hashmap. just modify the above file and so that i can use the code.