Using an XML document as an application's store


I have an existing Ember application (written pre-router AND pre-ember-data) that edits an existing, fairly complex, XML document format. I’d like to consider porting the application to the router + ember-data, but both seem firmly ingrained with the relational-DB notion of “IDs”, rather than a structured tree document format. As a monolithic document, there’s really no server communication required except to transmit the XML payload back upon a “save”.

I’m curious if anyone has worked out a good pattern for using pre-existing tree-structured data in an ember-idiomatic manner? I’ve thought about automatically constructing XPaths as the “ID” for each node, but I’d rather use it as a purely embedded structure.

Or maybe somebody has started work on an “XML Store Adapter”?