protected function createOODOMElement( DOMDocument $domDocument, eZContentObjectTreeNode $node )
    {
        $ooDocumentElement = $domDocument->createElement( 'OODocument' );

        $fileName = eZOOConverter::objectToOO( $node->attribute( 'node_id' ) );

        if ( is_array( $fileName ) )
        {
            throw new Exception( 'Could not generate OO document, ID: ' . $node->attribute( 'node_id' ) . ', Description: ' . $fileName[0] );
        }

        // Add odt document to DOMElement
        $ooDocumentElement->setAttribute( 'base64Encoded', '1' );
        $ooDocumentElement->setAttribute( 'filename', $node->attribute( 'name' ) . '.odt' );
        $ooDocumentElement->appendChild( $domDocument->createCDATASection( base64_encode( file_get_contents( $fileName ) ) ) );

        unlink( $fileName );

        return $ooDocumentElement;
    }