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
BedrockMission!

Learn more

View all

Sign in to view all badges

Auotmate the process of importing an xml file in AEM

laxmi_pandir
Level 1
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
kautuk_sahni
Community Manager
Community Manager

Hi

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:- http://stackoverflow.com/a/31435442/6433590

// AEM6. XML import to JCR

 

Reference article :-https://helpx.adobe.com/experience-manager/using/migrating-data-cq.html

// Migrating DITA XML data to Adobe CQ

 

Reference Post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

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

I hope this would help you.

~kautuk