Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Auotmate the process of importing an xml file in AEM


Level 1

I am working on a project and i need to automate the process to import an xml file to migrate content into a component in AEM. How can i achieve this?

1 Reply




You can write a Java service (OSGI service) which reads your XML data and using JCR API's  you can create corresponding nodes (with all data and properties) inside CRX repository to persist it. Once you have all the data - you can read this anywhere on your pages(websites, widgets, etc). Generally use XSLT to convert from one format to other.


Please have look at this post:-

// AEM6. XML import to JCR


Reference article :-

// Migrating DITA XML data to Adobe CQ


Reference Post:-

// Migrate website from Teamsite to AEM (XML structures  To AEM)

I hope this would help you.