Just another question, how do I get the actual value which is inbetween the elements?
getAttributeValue doens’t work. Here is my code by the way.
function updateLeagueTable(args) {
tableItems.clear();
fetch('http://iphone.gronsvartgbg.se/GAiS-v1.3.2/RssTable.ashx')
.then(function (response) {
response.text().then(function(text) {
var parser = new marknote.Parser();
var doc = parser.parse(text);
var root = doc.getRootElement();
var channel = root.getChildElements('channel')[0];
for(var i = 0; i < channel.length; i++) {
var item = channel.getChildElements('item')[i];
var pos = item.getAttributeValue('pos');
var team = item.getAttributeValue('team');
var games = item.getAttributeValue('games');
var won = item.getAttributeValue('won');
var draw = item.getAttributeValue('draw');
var lost = item.getAttributeValue('lost');
var goals = item.getAttributeValue('goals');
var points = item.getAttributeValue('points');
console.log(pos + ". " + team); }
});
}).catch(function(err) {
console.log(err.toString());
});
}