Do some basic XML validation before running the xmpsdk library to avoid bugs in xmpsdk.
* Check bounds of month and day. * Add some more bounds checks. * Fix test failure in clang.