I’m trying to write a dictionary application on Android, using a gzipped xml file (1,25 mb) containing the dictionary entries.
I’m not sure how to approach searching the xml file.
There’s XPath, but it loads the whole file into memory. So should I be looking into streaming (SAX, vdt-xml, …) or rather try to create a SQL database from the XML file? Or something else?
I ended up creating a SQLite DB from the XML with a python script and then copying the db file into the system database path as described in this answer:
https://stackoverflow.com/a/620086/1822977
Worked like a charm!