added options to support multiple xml input formats dictated by xsd