Add XMLWriter

See https://github.com/owncloud/core/pull/12321