Revised XMLEventStreamWriter to allow for empty elements with attributes

Issue: SPR-11254
Polishing

Issue: SPR-11254