This AEM development article walks you though how to use HTL and Sling Models to create a custom AEM component that is able to parse a DOM.
The previous illustration shows the results produced by the custom AEM DOM parser component that parses images from the AEM community page located here:
To read the AEM 6.1 development article that uses AEM HTL and Sling Models, click https://helpx.adobe.com/experience-manager/using/domparser.html.
To read the AEM 6.2 article, click: https://helpx.adobe.com/experience-manager/using/domparser62.html.
To watch the video and see this component in action - click: