I\'m using QML and XMLHttpRequest for fetching some XML-data.
var doc = new XMLHttpRequest();
if (doc.readyState == XMLHttpRequest.DONE) {
var root =
The text of an element node in the DOM is represented by a child element (a text node). The value of the text node is what you want.
So change
child.childNodes[j].nodeValue
into
child.childNodes[j].childNodes[0].nodeValue
to make it work.
See http://www.w3schools.com/dom/dom_nodes_get.asp
Maybe also consider using a XmlListModel.