moved xml schema defs into own methods