Fetch data / content from XML and display it inside the html div tags using innerHTML property of DOM. Follow…