Preliminary prelude work
Moving XML related helpers into separate module