JSFiddle - React, Tailwind, and code Playground

HTML

<span id="span"></span>

JavaScript

var xmldoc = $.parseXML('<root><child name="my:first" >text</child></root>');
$('#span').text($("child[name='my:first']", xmldoc).text());