Improved the error messages for XML encoding by indicating which attribute is in error when an unexpected type is encountered.
Merge pull request #27 from nirvdrum/better_error_messages

Improved the error messages for XML encoding by indicating which attribute is in error when an unexpected type is encountered.