I am trying to parse my xml RSS feed from https://talktosrinivasan.tribe.so/feed/home/srinivasnpo.webs.com I am i have not been able to link my text extracting code and parsing code from a reference of what I have coded see the HTML snippet below
<html>
<body>
<script>
function myFunction() {
var bodyScripts = document.querySelectorAll("https://talktosrinivasan.tribe.so/feed/home/srinivasnpo.webs.com");
for(var i=0; i<bodyScripts.length; i++){
bodyScripts[i].remove();
}
var str = document.body.textContent;
document.body.innerHTML = '<pre>'+str+'</pre>';
}
</script>
<p id="demo"></p>
<script>
var parser, xmlDoc;
var text = `<title>I am trying to parse my xml RSS feed </title>`;
parser = new DOMParser();
xmlDoc = parser.parseFromString(text,"text/xml");
document.getElementById("demo").innerHTML =
xmlDoc.getElementsByTagName("title")[0].childNodes[0].nodeValue;
</script>
</body>
</html>