protected function doParsingFromRoot(\SimpleXMLElement $root): array
    {
        $parsedData = [];

        foreach ($root->children() as $file) {
            $parsedData[] = $this->getFileData($file);
        }

        return $parsedData;
    }
protected function doParsingFromRoot(\SimpleXMLElement $root): array
    {
        $parsedData = [];

        foreach ($root->children() as $file) {
            $parsedData[] = $this->getFileData($file);
        }

        return $parsedData;
    }
protected function doParsingFromRoot ( \ SimpleXMLElement $ root ) : array { $ parsedData = [ ] ; foreach ( $ root -> children ( ) as $ file ) { $ parsedData [ ] = $ this -> getFileData ( $ file ) ; } return $ parsedData ; }
Returns array representation of XLIFF data, starting from a root node.

@param \SimpleXMLElement $root A root node
@return array An array representing parsed XLIFF
@throws InvalidXliffDataException
@todo Support "approved" attribute
Returns array representation of XLIFF data starting from a root node .