05-07-2012 10:00 AM
Hallo native devs! I'm a newbie in native development and I want to know how to parse RSS using QML in Cascades?
I see example like this:
Page {
content: Container {
background: Color.White
ListView {
rootIndexpath: [1]
dataModel: XmlDataModel { source: "model.xml" }
}
}
}
but, may I at "source:" use "http://example.com/rss.xml"?
If yes, how i can parse?
Thanks for help!
Solved! Go to Solution.
05-24-2012 03:15 PM
The QML in your post assumes that the XML file is local, if you are using a remote XML file then you will need to downloading it first using some backend Qt C++ networking code, then you can use it from QML.
I'd recommend starting with the Cascades Quotes sample to get a feel for how XmlDataModel parsing works then start looking into the networking and file access code.
08-05-2012 01:34 AM
i`ve managed to parse RSS feed into xml model that suit for XMLDataModel, thanks to XMLStreamReader and XMLStreamWriter ![]()
08-30-2012 05:54 PM
please, my implementation use xml in casacades, do you have an example?
01-15-2013 03:57 PM
please check this tutorial