src/POData/Writers/Atom/AtomODataWriter.php
/**
     * Function to write base uri and default namespaces for top level elements.
     * 
     * @return AtomODataWriter
     */
Function to write base uri and default namespaces for top level elements.


Function to write base uri and default namespaces for top level elements .
public function writeBaseUriAndDefaultNamespaces()
    {
        $this->xmlWriter->writeAttribute(
            ODataConstants::XML_BASE_ATTRIBUTE_NAME_WITH_PREFIX,
            $this->baseUri
        );
        $this->xmlWriter->writeAttributeNs(
            ODataConstants::XMLNS_NAMESPACE_PREFIX, 
            ODataConstants::ODATA_NAMESPACE_PREFIX, 
            null, 
            ODataConstants::ODATA_NAMESPACE
        );
        $this->xmlWriter->writeAttributeNs(
            ODataConstants::XMLNS_NAMESPACE_PREFIX, 
            ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, 
            null, 
            ODataConstants::ODATA_METADATA_NAMESPACE
        );
        $this->xmlWriter->writeAttribute(
            ODataConstants::XMLNS_NAMESPACE_PREFIX, 
            ODataConstants::ATOM_NAMESPACE
        );
	    return $this;
    }
public function writeBaseUriAndDefaultNamespaces ( ) { $ this -> xmlWriter -> writeAttribute ( ODataConstants :: XML_BASE_ATTRIBUTE_NAME_WITH_PREFIX , $ this -> baseUri ) ; $ this -> xmlWriter -> writeAttributeNs ( ODataConstants :: XMLNS_NAMESPACE_PREFIX , ODataConstants :: ODATA_NAMESPACE_PREFIX , null , ODataConstants :: ODATA_NAMESPACE ) ; $ this -> xmlWriter -> writeAttributeNs ( ODataConstants :: XMLNS_NAMESPACE_PREFIX , ODataConstants :: ODATA_METADATA_NAMESPACE_PREFIX , null , ODataConstants :: ODATA_METADATA_NAMESPACE ) ; $ this -> xmlWriter -> writeAttribute ( ODataConstants :: XMLNS_NAMESPACE_PREFIX , ODataConstants :: ATOM_NAMESPACE ) ; return $ this ; }
Function to write base uri and default namespaces for top level elements.
Function to write base uri and default namespaces for top level elements .