Split XML serialization and validation contracts.
Merge pull request #409 from edx/sanchez/xml-validation-refactoring

Split XML serialization and validation contracts.