protected function parseXmlFile(string $sourcePath)
    {
        $rootXmlNode = $this->getRootNode($sourcePath);

        return $this->doParsingFromRoot($rootXmlNode);
    }
protected function parseXmlFile(string $sourcePath)
    {
        $rootXmlNode = $this->getRootNode($sourcePath);

        return $this->doParsingFromRoot($rootXmlNode);
    }
protected function parseXmlFile ( string $ sourcePath ) { $ rootXmlNode = $ this -> getRootNode ( $ sourcePath ) ; return $ this -> doParsingFromRoot ( $ rootXmlNode ) ; }
Reads and parses XML file and returns internal representation of data.

@param string $sourcePath An absolute path to XML file
@return array Parsed XML file
Reads and parses XML file and returns internal representation of data .