I'd recommend keeping the xml writer in a separate instance.  That way this line doesn't need to change ever time a new schema version is created.