input pattern as XML implemented