Is There Any XML Parser Provided for QML JavaScript.
-
Hi all,
I am really stuck on this, Some how I need to crack this down.
Is there any XML Parser Provided for QML+JavaScript. like we have in JavaScript "getElementByTagName".
I need to parse Different type of XML Data received from the XMLHTTPRequest.I tried to parse XML data using childNodes, nodeName and nodeValue but there are multiple combinations of the XML data. There can be N numbers of Child node from where i need to get the nodeValue for particular node name.
I have done this in JavaScript using getElementByTagName, but now I have to do this in QML+JavaScript.
So is there any standard XML Parser available for QML+JavaScript.@
var httpReq = new XMLHttpRequest();
httpReq.open("POST", "http://localhost:port/", true);
httpReq.onreadystatechange = function()
{
if(httpReq.readyState == XMLHttpRequest.DONE)
{
if( httpReq.status == 200 )
{
var doc = httpReq.responseXML.documentElement;
/--- I need to parse this XML Data and get the results ---/
}
}
};
@Thanks in advance.
-
May be you need to look at XmlRole and XmlModels
http://doc.qt.nokia.com/latest/qml-xmlrole.html
check out this project:
http://projects.developer.nokia.com/QuickFlickr/browserit handles some XML in QML