The requirement is to extract an element(HTML Page) from an XML which contains an html code and then send a customized json payload as response.