Ghita
Ghita

Reputation: 169

Generating and serving XML files on GAE

I'm using play framework 1.2.4 and deploying my application on GAE.

I'm trying to get data from datastore and create a XML file based on that data. Then, I have javascript that use this file to populate a google map. (the XML file has latitude and longitude).

Once, deploying the application it's not working 'cause I can't write/create a file on the server.

I've tried before to work with JSON object instead of XML but it didn't work.

Is there any way that I can resolve this and work with a XML file?

Upvotes: 0

Views: 72

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599926

Why would you need to create an actual file? And why would JSON vs XML make a difference?

Just write a handler which queries the datastore returns the data directly, in whichever format you need.

Upvotes: 1

Related Questions