Creating infrastructure to define XML structure, accessors and validators in one fell swoop