src/POData/Writers/Metadata/MetadataWriter.php
/**
     * Write top level 'Edmx' and 'DataServices' nodes with associated attributes
     * 
     * @param Version $dataServiceVersion version of the data service
     * 
     * @return void
     */
Write top level 'Edmx' and 'DataServices' nodes with associated attributes

@param Version $dataServiceVersion version of the data service

@return void
Write top level ' Edmx ' and ' DataServices ' nodes with associated attributes @param Version $dataServiceVersion version of the data service @return void
private function _writeTopLevelElements($dataServiceVersion)
    {
        $this->_xmlWriter->startElementNs(ODataConstants::EDMX_NAMESPACE_PREFIX, ODataConstants::EDMX_ELEMENT, ODataConstants::EDMX_NAMESPACE_1_0);
        $this->_xmlWriter->writeAttribute(ODataConstants::EDMX_VERSION, ODataConstants::EDMX_VERSION_VALUE);
        $this->_xmlWriter->startElementNs(ODataConstants::EDMX_NAMESPACE_PREFIX, ODataConstants::EDMX_DATASERVICES_ELEMENT, ODataConstants::EDMX_NAMESPACE_1_0);
        $this->_xmlWriter->writeAttributeNs(ODataConstants::XMLNS_NAMESPACE_PREFIX, ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, null, ODataConstants::ODATA_METADATA_NAMESPACE);
        $this->_xmlWriter->writeAttributeNs(ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, ODataConstants::ODATAVERSIONHEADER, null, $dataServiceVersion);
    }
private function _writeTopLevelElements ( $ dataServiceVersion ) { $ this -> _xmlWriter -> startElementNs ( ODataConstants :: EDMX_NAMESPACE_PREFIX , ODataConstants :: EDMX_ELEMENT , ODataConstants :: EDMX_NAMESPACE_1_0 ) ; $ this -> _xmlWriter -> writeAttribute ( ODataConstants :: EDMX_VERSION , ODataConstants :: EDMX_VERSION_VALUE ) ; $ this -> _xmlWriter -> startElementNs ( ODataConstants :: EDMX_NAMESPACE_PREFIX , ODataConstants :: EDMX_DATASERVICES_ELEMENT , ODataConstants :: EDMX_NAMESPACE_1_0 ) ; $ this -> _xmlWriter -> writeAttributeNs ( ODataConstants :: XMLNS_NAMESPACE_PREFIX , ODataConstants :: ODATA_METADATA_NAMESPACE_PREFIX , null , ODataConstants :: ODATA_METADATA_NAMESPACE ) ; $ this -> _xmlWriter -> writeAttributeNs ( ODataConstants :: ODATA_METADATA_NAMESPACE_PREFIX , ODataConstants :: ODATAVERSIONHEADER , null , $ dataServiceVersion ) ; }
Write top level 'Edmx' and 'DataServices' nodes with associated attributes
Write top level ' Edmx ' and ' DataServices ' nodes with associated attributes