Skip to main content
Level 2
August 18, 2023
Solved

Auotmate the process of importing an xml file in AEM

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Harwinder-singh
Harwinder-singhAccepted solution
Community Advisor
August 18, 2023

@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-dam-and-place-it-in-jcr/td-p/250446

 

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.

4 replies

Harwinder-singh
Community Advisor
Community Advisor
August 18, 2023
Level 2
August 18, 2023

the links are not available

Translate
Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
August 18, 2023

@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-dam-and-place-it-in-jcr/td-p/250446

 

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.

Translate
Preetpal_Bindra
Community Advisor
Community Advisor
August 18, 2023

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.html

 

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

 

thanks,

Preetpal Singh

Translate