AEM 6.2 : Consume XML from external application | Community
Skip to main content
divyasekar
Level 2
November 16, 2016
Solved

AEM 6.2 : Consume XML from external application

  • November 16, 2016
  • 3 replies
  • 1310 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

3 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 16, 2016

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. 

divyasekar
Level 2
November 17, 2016

Thank you

kautuk_sahni
Community Manager
Community Manager
November 17, 2016

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