Added XML Schema validation and error reporting.