it is pretty stright forward you can just add a new tag in xml fileand traverse thru java APIPlease let me know if you require simple exampleby the way, "problem regarding writing in XML file through java "What problem you are facing?