Expand my Community achievements bar.

SOLVED

AEM 6.2 : Consume XML from external application

Avatar

Level 2

Is there an OOTB functionality or component available in AEM 6.2 to consume XML data from external application?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You would need to write a Java service using Java APIS like org.w3c.dom that can work with XML. We have a community article that works with XML that can act as an example to get you up and running:

https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

Also - i assume you would need to make a call to get the XML using somethign like a Restful call. We have some examples of that as well. 

Hope this helps. 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

You would need to write a Java service using Java APIS like org.w3c.dom that can work with XML. We have a community article that works with XML that can act as an example to get you up and running:

https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

Also - i assume you would need to make a call to get the XML using somethign like a Restful call. We have some examples of that as well. 

Hope this helps. 

Avatar

Administrator

Hi

You can write a Java service (OSGI service) which reads your XML data and using JCR API's create corresponding nodes (with all data and properties) inside CRX repository. 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

 

I hope this would help you.

~kautuk



Kautuk Sahni