Auotmate the process of importing an xml file in AEM | Community
Skip to main content
Level 2
Aug 18, 2023 5:20 PM UTC
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
New Participant
Aug 18, 2023 6:55 PM UTC

@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

Preetpal_Bindra
New Participant
Aug 18, 2023 7:42 PM UTC

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
Harwinder-singh
New Participant
Aug 18, 2023 6:06 PM UTC
Level 2
Aug 18, 2023 6:30 PM UTC

the links are not available

Translate
Harwinder-singh
Harwinder-singhAccepted solution
New Participant
Aug 18, 2023 6:55 PM UTC

@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