added folder XML extraction in process_xml()