fixed xml writer