Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php
protected function parseDimensionsElement(\XMLReader $reader)
    {
        $dimensions = [];
        $currentDimension = null;

        while ($reader->read()) {
            switch ($reader->nodeType) {
                case \XMLReader::ELEMENT:
                    $currentDimension = $reader->name;
                    break;
                case \XMLReader::END_ELEMENT:
                    if ($reader->name === 'dimensions') {
                        return $dimensions;
                    }
                    break;
                case \XMLReader::CDATA:
                case \XMLReader::TEXT:
                    $dimensions[$currentDimension][] = $reader->value;
                    break;
            }
        }

        return $dimensions;
    }
protected function parseDimensionsElement(\XMLReader $reader)
    {
        $dimensions = [];
        $currentDimension = null;

        while ($reader->read()) {
            switch ($reader->nodeType) {
                case \XMLReader::ELEMENT:
                    $currentDimension = $reader->name;
                    break;
                case \XMLReader::END_ELEMENT:
                    if ($reader->name === 'dimensions') {
                        return $dimensions;
                    }
                    break;
                case \XMLReader::CDATA:
                case \XMLReader::TEXT:
                    $dimensions[$currentDimension][] = $reader->value;
                    break;
            }
        }

        return $dimensions;
    }
protected function parseDimensionsElement ( \ XMLReader $ reader ) { $ dimensions = [ ] ; $ currentDimension = null ; while ( $ reader -> read ( ) ) { switch ( $ reader -> nodeType ) { case \ XMLReader :: ELEMENT : $ currentDimension = $ reader -> name ; break ; case \ XMLReader :: END_ELEMENT : if ( $ reader -> name === 'dimensions' ) { return $ dimensions ; } break ; case \ XMLReader :: CDATA : case \ XMLReader :: TEXT : $ dimensions [ $ currentDimension ] [ ] = $ reader -> value ; break ; } } return $ dimensions ; }
Parses the content of the dimensions-tag and returns the dimensions as an array
'dimension name' => dimension value

@param \XMLReader $reader reader positioned just after an opening dimensions-tag
@return array the dimension values
Parses the content of the dimensions - tag and returns the dimensions as an array dimension name = > dimension value