Currency converter tutorial is very useful in explaining how to download and parse an xml file through XmlListModel, but it seems it is not possible to parse a gizipped file in this way. How could I do?
Asked
Active
Viewed 175 times
1 Answers
0
Well, you can always gunzip it.
cat [file] | gunzip > file.xml
That will take the contents of the file, decompress them, and place them in file.xml. You should be able to parse that just like any old plain XML out there.
Daniel
- 3,400
- 2
- 22
- 43
-
It seems [it is possible](https://askubuntu.com/questions/288494/run-system-commands-from-qml-app) to run command line tools in Ubuntu Touch with C++, though I'd like a simpler way. – lqskqs Mar 23 '16 at 19:12
-
I mean run this command in Terminal, then process the new file. – Daniel Mar 23 '16 at 19:17
-
Maybe I was not clear but I would like to write an app that can download and parse a gizipped xml file. – lqskqs Mar 23 '16 at 20:23
-
Aha. Then you will need to implement gunzip into your code. – Daniel Mar 23 '16 at 20:57