Wrap xmlwriter