回显简单的xml对象

I am able to parse and show the first object in the xml file but am not able to echo the second object.

this is the results of my get

noaa\weatheresponse\CurrentWeather Object
(
    [xml:protected] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [version] => 1.2
                )

            [request_index] => 664770430
            [data_source] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [name] => metars
                        )

                )

            [request] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [type] => retrieve
                        )

                )

            [errors] => SimpleXMLElement Object
                (
                )

            [warnings] => SimpleXMLElement Object
                (
                )

            [time_taken_ms] => 4
            [data] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [num_results] => 4
                        )

                    [METAR] => Array
                        (
                            [0] => SimpleXMLElement Object
                                (
                                    [raw_text] => EGGW 160750Z 21006KT 3400 BR SCT001 BKN003 05/05 Q1029
                                    [station_id] => EGGW
                                    [observation_time] => 2017-02-16T07:50:00Z
                                    [latitude] => 51.87
                                    [longitude] => -0.37
                                    [temp_c] => 5.0
                                    [dewpoint_c] => 5.0
                                    [wind_dir_degrees] => 210
                                    [wind_speed_kt] => 6
                                    [visibility_statute_mi] => 2.11
                                    [altim_in_hg] => 30.383858
                                    [wx_string] => BR
                                    [sky_condition] => Array
                                        (
                                            [0] => SimpleXMLElement Object
                                                (
                                                    [@attributes] => Array
                                                        (
                                                            [sky_cover] => SCT
                                                            [cloud_base_ft_agl] => 100
                                                        )

                                                )

                                            [1] => SimpleXMLElement Object
                                                (
                                                    [@attributes] => Array
                                                        (
                                                            [sky_cover] => BKN
                                                            [cloud_base_ft_agl] => 300
                                                        )

                                                )

                                        )

                                    [flight_category] => LIFR
                                    [metar_type] => METAR
                                    [elevation_m] => 160.0
                                )

                            [1] => SimpleXMLElement Object
                                (
                                    [raw_text] => EGNV 160750Z 21015KT 9999 SCT040 07/04 Q1023
                                    [station_id] => EGNV
                                    [observation_time] => 2017-02-16T07:50:00Z
                                    [latitude] => 54.52
                                    [longitude] => -1.42
                                    [temp_c] => 7.0
                                    [dewpoint_c] => 4.0
                                    [wind_dir_degrees] => 210
                                    [wind_speed_kt] => 15
                                    [visibility_statute_mi] => 6.21
                                    [altim_in_hg] => 30.206694
                                    [sky_condition] => SimpleXMLElement Object
                                        (
                                            [@attributes] => Array
                                                (
                                                    [sky_cover] => SCT
                                                    [cloud_base_ft_agl] => 4000
                                                )

                                        )

                                    [flight_category] => VFR
                                    [metar_type] => METAR
                                    [elevation_m] => 37.0
                                )    

                     )

        )

    [cachedValues:protected] => Array
        (
            [location] => 
            [observation_time] => 2017-02-16T07:50:00Z
            [temp_f] => 
            [dewpoint_f] => 
            [relative_humidity] => 
            [wind_string] => 
            [weather] => 
            [raw_text] => EGGW 160750Z 21006KT 3400 BR SCT001 BKN003 05/05 Q1029
            [station_id] => EGGW
            [flight_category] => LIFR
            [latitude] => 51.87
            [longitude] => -0.37
            [temp_c] => 5.0
            [dewpoint_c] => 5.0
            [wind_dir_degrees] => 210
            [wind_speed_kt] => 6
            [visibility_statute_mi] => 2.11
            [altim_in_hg] => 30.383858
            [wx_string] => BR
            [sky_condition] => 
            [elevation_m] => 160.0
        )

    [cachedValues2] => Array
        (
            [location] => 
            [observation_time] => 2017-02-16T07:50:00Z
            [temp_f] => 
            [dewpoint_f] => 
            [relative_humidity] => 
            [wind_string] => 
            [weather] => 
            [raw_text] => EGNV 160750Z 21015KT 9999 SCT040 07/04 Q1023
            [station_id] => EGNV
            [flight_category] => VFR
            [latitude] => 54.52
            [longitude] => -1.42
            [temp_c] => 7.0
            [dewpoint_c] => 4.0
            [wind_dir_degrees] => 210
            [wind_speed_kt] => 15
            [visibility_statute_mi] => 6.21
            [altim_in_hg] => 30.206694
            [wx_string] => BR
            [sky_condition] => 
            [elevation_m] => 37.0
        )

)

Here is the a partial example of the code I am using to echo the first object. which is working fine.

echo "Metar: " . $current->getRawF(). "
";
echo "<hr>";
echo "<br>";
echo "Station ID: " . $current->getStationId() . '&nbsp;&nbsp;(' . $current->getCat() .")" ;

No matter what I have tried I am in able to echo any the second object (egnv). I was hoping for some help pointing me in the right direction. Thanks for the help Steve