Decodes a Document from the given XML string.
The deserialized Document object.
The XML string to decode.
if the given string is not a valid GPX document.