created xml reader and xml writer