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?
Solved! Go to Solution.
Views
Replies
Total Likes
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 :
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.
@Johnhenao10 You may want to refer to this article - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/auotmate-the-process-of-im...
the links are not available
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 :
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.
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