make XML based handler to prepare DOM with markup