Decodes a Document from the given XML string. If the string is not a well-formed GPX document, null is returned.
A Document object if decoding is successful, or null if the string is invalid.
null
The XML string to decode.