How to pass values from a java file to a xml file

Posted by Anonymous October 8, 2009 - 10:07am

I want to pass parameter from a java file to xml file.

How can this be achieved?
Please explain with an example...

Thanks..