We can decode XML data from a file on disk.

https://codeeval.dev/gist/c93793e00c200635739337b99c7011f2

By writing a helper function decodeFromReader, we can easily write wrappers that will work on files, strings or network connections.