src/Common/Internal/Atom/AtomBase.php
protected function writeOptionalElementNS(
        \XMLWriter $xmlWriter,
        $prefix,
        $elementName,
        $namespace,
        $elementValue
    ) {
        Validate::isString($elementName, 'elementName');

        if (!empty($elementValue)) {
            $xmlWriter->writeElementNS(
                $prefix,
                $elementName,
                $namespace,
                $elementValue
            );
        }
    }
protected function writeOptionalElementNS(
        \XMLWriter $xmlWriter,
        $prefix,
        $elementName,
        $namespace,
        $elementValue
    ) {
        Validate::isString($elementName, 'elementName');

        if (!empty($elementValue)) {
            $xmlWriter->writeElementNS(
                $prefix,
                $elementName,
                $namespace,
                $elementValue
            );
        }
    }
protected function writeOptionalElementNS ( \ XMLWriter $ xmlWriter , $ prefix , $ elementName , $ namespace , $ elementValue ) { Validate :: isString ( $ elementName , 'elementName' ) ; if ( ! empty ( $ elementValue ) ) { $ xmlWriter -> writeElementNS ( $ prefix , $ elementName , $ namespace , $ elementValue ) ; } }
Writes the optional elements namespaces.

@param \XMLWriter $xmlWriter    The XML writer
@param string     $prefix       The prefix
@param string     $elementName  The element name
@param string     $namespace    The namespace name
@param string     $elementValue The element value
Writes the optional elements namespaces .