JSFiddle - React, Tailwind, and code Playground

by dmethvin

JavaScript

var x = $.parseXML('<Datei><company><Headline>1. first headline</Headline><Content>1. first text</Content><Footer>1. first footer</Footer></company><company><Headline>2. second headline</Headline><Content>2. second text</Content><Footer>2. second footer</Footer></company></Datei>');

$(x).find("test\\:company, company").each(function(){
    $(document.body).append(this.nodeName+" "+$(this).text()+"<br>");
})