1

I'm quite a newbie in AEM(Adobe experience manager), but I heard that you can export XML from it. I have 3 questions regarding this:

  • Why not HTML?
  • How does AEM process internally to display the XML content?
  • How do we render the XML content outside AEM to see the original webpage content in AEM?

Thank you very much and hope to hear back from you soon!

Penny
  • 1,218
  • 1
  • 13
  • 32

1 Answers1

4

Out of the box, AEM can render content in XML and HTML, as well as JSON and others. See this similar question.

You'll want to read the Sling Cheatsheet and the Sling docs regarding Apache Sling script resolution. Read about Sling rendering with the default Get servlet.

The same content in the JCR can be rendered in different formats by changing the URL extension. So if you have a cq:Page resource at /content/projectname/page, you can retrieve XML by making a simple GET request to /content/projectname/page.xml. Likewise you can retrieve HTML at /content/projectname/page.html and JSON at /content/projectname/page.json.

As for your question on how AEM renders handles the rendering internally, it's actually the responsibility of Apache Sling. You can examine the open source code on GitHub including the different renderers.

Community
  • 1
  • 1
nateyolles
  • 1,851
  • 5
  • 17
  • 23
  • thank you so much @nateyolles! Very valuable information for someone that doesn't have much clue about this question, like me. – Penny Apr 27 '16 at 18:45