adding xml writer