I noticed Android uses XML to store and parse strings in application. Something I'm working on uses a lot of stored sql queries and I was wondering what would be better to store them in. I hear json is more efficient and certainly the raw bits of a json would be lower. But XML's more human readable which is good if you tend to change it around often which I plan to. I don't need XML for its markup capabilities so forget that. I'm really interested in why Google chose XML for all of its data structuring, particularly, saving strings and not JSON if JSON is more efficient. Anyone have a thought on that? And for the same reason do you suggest storing sql queries in XML?

Related posts

Recent Viewed