protected function parseToArray( ) {
        try {
            $xml = new \SimpleXMLElement( $this->file_path, 0, true );
            //\common\components\CustomVarDamp::dumpAndDie($xml->children()->children());
            $result = $this->recursiveParseToArray( $xml );
        } catch(\Exception $ex) {

            throw $ex;
        }
        return $result;
    }
protected function parseToArray( ) {
        try {
            $xml = new \SimpleXMLElement( $this->file_path, 0, true );
            //\common\components\CustomVarDamp::dumpAndDie($xml->children()->children());
            $result = $this->recursiveParseToArray( $xml );
        } catch(\Exception $ex) {

            throw $ex;
        }
        return $result;
    }
protected function parseToArray ( ) { try { $ xml = new \ SimpleXMLElement ( $ this -> file_path , 0 , true ) ; //\common\components\CustomVarDamp::dumpAndDie($xml->children()->children()); $ result = $ this -> recursiveParseToArray ( $ xml ) ; } catch ( \ Exception $ ex ) { throw $ ex ; } return $ result ; }
Converts an XML string to a PHP array
@param $file_path
@return mixed
@throws Exception
@throws \Exception
Converts an XML string to a PHP array