decodeFromString

fun decodeFromString(@Language(value = "xml") string: String): Document(source)

Decodes a Document from the given XML string.

Return

The deserialized Document object.

Parameters

string

The XML string to decode.

Throws

if the given string is not a valid GPX document.