Welcome to InkscapeForum!
There was another topic recently about this. If I recall, they were looking to write an extension that would do this, but I don't remember for sure. You could search the forum, because maybe that topic contains a solution. I'll try searching too, and post again if I find it.
The *.svg files are XML files. Just save it. Note that Inkscape uses translate extensively. That means the coordinates in an object may be translated to another position. You have to add the two together to get the correct coordinates.
"...add the two..." The 2 what? The coordinates from the XML file and what? Sorry, I'm just not clear what you mean Edit
Oops, Sim posted while I was typing
I guess that was the topic I was thinking of