JSFiddle - React, Tailwind, and code Playground

JavaScript

var xml ="<a><FUN>Minimum</FUN><FUN>Maximum</FUN><OPR>*</OPR><OPR>*</OPR><DEL>></DEL><DEL>(<</DEL><DEL>)</DEL><DEL>)</DEL><CON>'asda'</CON><CON>8667</CON></a>";
function traverse(tree) {
    $(tree).contents().each(function() {
        if (this.nodeType == 3) { // text node
            // node value: $(this).text() or this.nodeValue
            document.write($(this).text()+ '<br />');
						
        } else {
            document.write(this.nodeName + ': ');
        
            traverse(this);
        }
    });
}

traverse(xml);