Hi ShrutiS / AngelaIp
I know this is late reply but Yes this can be archived by below code. Please let me know if you have any questions.
const type = this.getType(); if(type === "Document") { parser = new DOMParser(); let xmlDoc = ""; xmlDoc = parser…