Add XMLWriter

See https://github.com/owncloud/core/pull/12321
Merge pull request #668 from owncloud/add-xml

Add XMLWriter