Refactor XML validation into own module
v0.4.6