I have completed my first version of a library to [hopefully] help in the generation of GPX files on an Arduino processor. I have successful generated output that validated successful for the example code. I am going to be integrating it into my current GPS project later today so there may be some changes soon.
The library is pretty basic at this time, the methods are called sequentially to piece the file together. Due to the limited in the Arduino processor ( and most embedded systems ) I do not think it is practical to construct the full element in memory.
Here is the example over at github:
// start serial port at 9600 bps:
And the resulting output:
The project page is over here.