I want to fetch the process configuration source (xml) using java and I want to store the date of roles and permissions in the excel sheet.

Hi,
I want to extract the XML - Process Configuration Source of the project area using Java and I want to store xml data of roles and permissions into the excel sheet. Please let me know for how to fetch the xml source date from the project area using Java? Furthermore how to store the data of roles and permissions in the excel sheet? I thank you in anticipation.
Regards,
Aishwarya Sureban