config xml and pattern xml