Serializes a Document object into its GPX XML string representation.
A String containing the GPX XML data.
The Document object to be encoded.