More or less. Both with Gson and DOM, the data is finally stored in these classes. The difference is Gson does it automatically, i.e. it receives the classes hierarchy and instantiate them in order to create the needed objects. DOM is not so intelligent and parses the XML document by creating its own internal object structures that, personally, do not like. Thus, I traverse such objets in order to store the data in the same way Gson does.