Streaming solution works in LibreOffice and OpenOffice.
Eliminated optional attribute.