Fixed error with XML encoder. Works fully now.