Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Auotmate the process of importing an xml file in AEM

Avatar

Level 2

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 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Johnhenao10 

One of them does work.

Here we go : 

http://stackoverflow.com/a/31435442/6433590

 

In addition to that , you can refer to this additional resource : 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-read-xml-file-from-...

 

On a high level, you need to read this file from a jcr location as an object stream. Once you have the contents of the binary, you can write the xml structure into the repository and use them in your component.

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

@Johnhenao10 

One of them does work.

Here we go : 

http://stackoverflow.com/a/31435442/6433590

 

In addition to that , you can refer to this additional resource : 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-read-xml-file-from-...

 

On a high level, you need to read this file from a jcr location as an object stream. Once you have the contents of the binary, you can write the xml structure into the repository and use them in your component.

Avatar

Community Advisor

Hello @Johnhenao10,

I do not know about an Out of the box utility that imports XML in AEM. Of course writing a server side code is a possibility as discussed here: https://stackoverflow.com/questions/29396761/aem6-xml-import-to-jcroak

 

However, the closest format for importing that I can tell is CSV/Excel, that can be imported into AEM using this utility: https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/data-importer/index.h...

 

It could give you some idea on "How to" if not immediately solve what you are looking for.

 

thanks,

Preetpal Singh