Fixed the XML decoder

Unit tests in working order. Also moved the string blobs to the resources dir.