Parsing XML namespace -PHP
I have the following XML:

    <aws:weather>
    <aws:api version="2.0"/>
    <aws:locations>
    <aws:location cityname="Abano Terme" statename="" countryname="Italy" zipcode="" citycode="66395" citytype="1"/>
    <aws:location cityname="Aibonito" statename="PR" countryname="USA" zipcode="00705" citycode="" citytype="0"/>
    <aws:location cityname="Aibonito" statename="" countryname="Puerto Rico" zipcode="" citycode="73246" citytype="1"/>
    <aws:location cityname="Appomattox" statename="VA" countryname="USA" zipcode="24522" citycode="" citytype="0"/>
    <aws:location cityname="Avant" statename="OK" countryname="USA" zipcode="74001" citycode="" citytype="0"/>
    <aws:location cityname="Avenwedde" statename="" countryname="Germany" zipcode="" citycode="58336" citytype="1"/>
    </aws:locations>
    </aws:weather>



I Want to extract data like in:

    cityname countryname citycode
    cityname countryname citycode

I am good in php but not very good when it comes to XML especially with namespace. Thanks in advance :)
Parsing XML namespace -PHP
===

I have the following XML:

    <aws:weather>
    <aws:api version="2.0"/>
    <aws:locations>
    <aws:location cityname="Abano Terme" statename="" countryname="Italy" zipcode="" citycode="66395" citytype="1"/>
    <aws:location cityname="Aibonito" statename="PR" countryname="USA" zipcode="00705" citycode="" citytype="0"/>
    <aws:location cityname="Aibonito" statename="" countryname="Puerto Rico" zipcode="" citycode="73246" citytype="1"/>
    <aws:location cityname="Appomattox" statename="VA" countryname="USA" zipcode="24522" citycode="" citytype="0"/>
    <aws:location cityname="Avant" statename="OK" countryname="USA" zipcode="74001" citycode="" citytype="0"/>
    <aws:location cityname="Avenwedde" statename="" countryname="Germany" zipcode="" citycode="58336" citytype="1"/>
    </aws:locations>
    </aws:weather>



I Want to extract data like in:

    cityname countryname citycode
    cityname countryname citycode

I am good in php but not very good when it comes to XML especially with namespace. Thanks in advance :)