[SailfishDevel] XmlListModel can't fetch data from a local .xml file
jollailija at gmail.com
jollailija at gmail.com
Fri Dec 11 17:26:20 UTC 2015
Hi! Since Nettiradio is ... a net radio, I figured I could use a xml file hosted on GitHub as a update-able station database. It works like a charm, but in case GitHub goes down or something, I'd like to have a local copy shipped with every release. However, XmlListModel doesn't seem to like reading local files. I have tried all kinds of local path urls but I can't get it working. What am I doing wrong?
If you need to take a look at the code, you can find it at https://github.com/jollailija/nettiradio
The xml file I'm trying to read is asemat.xml adn the list model file is StationsModel.qml
Cheers,
jollailija
--
Lähetetty Jollastani
More information about the Devel
mailing list