Created a xml writer which disallows writing.