To achieve this functionality within AEM, you need to implement two services:
- A custom service that reads XML files in a local directory and places the file into a JCR location.
- An AEM Scheduler service that invokes the custom service at specific time intervals.
This development article walks you through how to implement this use case by implementing a custom AEM service and a Scheduler service. To read this development article, click https://helpx.adobe.com/experience-manager/using/aem63_watche_folder_scheduler.html.