auto populating a form with XML data



Hi. I have a form that I want to be auto populated with XML data via a batch job. All I need to know is if this is possible? If it is, then how would I go about writing script to auto populate the field? ANY clues would be helpful as I have been pondering this problem for the past couple days...