Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php
protected function determineFormatVersion(\XMLReader $xmlReader)
    {
        while ($xmlReader->nodeType !== \XMLReader::ELEMENT || $xmlReader->name !== 'nodes') {
            if (!$xmlReader->read()) {
                break;
            }
        }

        if ($xmlReader->name === 'nodes' && $xmlReader->nodeType === \XMLReader::ELEMENT) {
            return $xmlReader->getAttribute('formatVersion');
        }

        return false;
    }
protected function determineFormatVersion(\XMLReader $xmlReader)
    {
        while ($xmlReader->nodeType !== \XMLReader::ELEMENT || $xmlReader->name !== 'nodes') {
            if (!$xmlReader->read()) {
                break;
            }
        }

        if ($xmlReader->name === 'nodes' && $xmlReader->nodeType === \XMLReader::ELEMENT) {
            return $xmlReader->getAttribute('formatVersion');
        }

        return false;
    }
protected function determineFormatVersion ( \ XMLReader $ xmlReader ) { while ( $ xmlReader -> nodeType !== \ XMLReader :: ELEMENT || $ xmlReader -> name !== 'nodes' ) { if ( ! $ xmlReader -> read ( ) ) { break ; } } if ( $ xmlReader -> name === 'nodes' && $ xmlReader -> nodeType === \ XMLReader :: ELEMENT ) { return $ xmlReader -> getAttribute ( 'formatVersion' ) ; } return false ; }
Determines the ContentRepository format version of the given xml

@param \XMLReader $xmlReader
@return null|string the version as a string or null if the version could not be determined
Determines the ContentRepository format version of the given xml