title: How can i access this soap xml response
body: <p>Hi im already out of idea tried namespace and other functions of simpleXMLELEment php class but no luck here is the xml `</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;s:Header&gt;
        &lt;ActivityId CorrelationId="3d0d561e-4c03-428a-b14a-399eca0acdfd" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"&gt;50b0d0e5-5187-4991-9725-181d1a452d9c&lt;/ActivityId&gt;
     &lt;/s:Header&gt;
     &lt;s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
        &lt;CruiseLinesResult xmlns="http://tourico.com/webservices/"&gt;
           &lt;CruiseLinesList&gt;
              &lt;CruiseLine CruiseLineId="1213019" CruiseLineName="Azamara Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="130" Name="Azamara Journey"/&gt;
                    &lt;Ship ID="131" Name="Azamara Quest"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="11493" CruiseLineName="Carnival Cruise Line"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="162" Name="Carnival Breeze"/&gt;
                    &lt;Ship ID="1" Name="Carnival Conquest"/&gt;
                    &lt;Ship ID="129" Name="Carnival Dream"/&gt;
                    &lt;Ship ID="13" Name="Carnival Ecstasy"/&gt;
                    &lt;Ship ID="14" Name="Carnival Elation"/&gt;
                    &lt;Ship ID="15" Name="Carnival Fantasy"/&gt;
                    &lt;Ship ID="16" Name="Carnival Fascination"/&gt;
                    &lt;Ship ID="89" Name="Carnival Freedom"/&gt;
                    &lt;Ship ID="3" Name="Carnival Glory"/&gt;
                    &lt;Ship ID="18" Name="Carnival Imagination"/&gt;
                    &lt;Ship ID="19" Name="Carnival Inspiration"/&gt;
                    &lt;Ship ID="4" Name="Carnival Legend"/&gt;
                    &lt;Ship ID="5" Name="Carnival Liberty"/&gt;
                    &lt;Ship ID="146" Name="Carnival Magic"/&gt;
                    &lt;Ship ID="6" Name="Carnival Miracle"/&gt;
                    &lt;Ship ID="20" Name="Carnival Paradise"/&gt;
                    &lt;Ship ID="7" Name="Carnival Pride"/&gt;
                    &lt;Ship ID="21" Name="Carnival Sensation"/&gt;
                    &lt;Ship ID="117" Name="Carnival Splendor"/&gt;
                    &lt;Ship ID="185" Name="Carnival Sunshine"/&gt;
                    &lt;Ship ID="9" Name="Carnival Triumph"/&gt;
                    &lt;Ship ID="10" Name="Carnival Valor"/&gt;
                    &lt;Ship ID="11" Name="Carnival Victory"/&gt;
                    &lt;Ship ID="281" Name="Carnival Vista"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1030965" CruiseLineName="Celebrity Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="25" Name="Celebrity Century"/&gt;
                    &lt;Ship ID="26" Name="Celebrity Constellation"/&gt;
                    &lt;Ship ID="152" Name="Celebrity Eclipse"/&gt;
                    &lt;Ship ID="121" Name="Celebrity Equinox"/&gt;
                    &lt;Ship ID="43" Name="Celebrity Infinity"/&gt;
                    &lt;Ship ID="50" Name="Celebrity Millennium"/&gt;
                    &lt;Ship ID="161" Name="Celebrity Reflection"/&gt;
                    &lt;Ship ID="151" Name="Celebrity Silhouette"/&gt;
                    &lt;Ship ID="120" Name="Celebrity Solstice"/&gt;
                    &lt;Ship ID="76" Name="Celebrity Summit"/&gt;
                    &lt;Ship ID="85" Name="Celebrity Xpedition"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1030966" CruiseLineName="Costa Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="29" Name="Costa Classica"/&gt;
                    &lt;Ship ID="147" Name="Costa Deliziosa"/&gt;
                    &lt;Ship ID="192" Name="Costa Diadema"/&gt;
                    &lt;Ship ID="184" Name="Costa Fascinosa"/&gt;
                    &lt;Ship ID="182" Name="Costa Favolosa"/&gt;
                    &lt;Ship ID="31" Name="Costa Fortuna"/&gt;
                    &lt;Ship ID="126" Name="Costa Luminosa"/&gt;
                    &lt;Ship ID="32" Name="Costa Magica"/&gt;
                    &lt;Ship ID="34" Name="Costa Mediterranea"/&gt;
                    &lt;Ship ID="194" Name="Costa neoRiviera"/&gt;
                    &lt;Ship ID="193" Name="Costa neoRomantica"/&gt;
                    &lt;Ship ID="127" Name="Costa Pacifica"/&gt;
                    &lt;Ship ID="94" Name="Costa Serena"/&gt;
                    &lt;Ship ID="36" Name="Costa Victoria"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1201987" CruiseLineName="Cunard Line Ltd."&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="99" Name="Queen Elizabeth"/&gt;
                    &lt;Ship ID="118" Name="Queen Mary 2"/&gt;
                    &lt;Ship ID="128" Name="Queen Victoria"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1223492" CruiseLineName="Disney Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="150" Name="Disney Dream"/&gt;
                    &lt;Ship ID="160" Name="Disney Fantasy"/&gt;
                    &lt;Ship ID="148" Name="Disney Magic"/&gt;
                    &lt;Ship ID="149" Name="Disney Wonder"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1030967" CruiseLineName="Holland America Line"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="23" Name="Amsterdam"/&gt;
                    &lt;Ship ID="116" Name="Eurodam"/&gt;
                    &lt;Ship ID="46" Name="Maasdam"/&gt;
                    &lt;Ship ID="189" Name="Nieuw Amsterdam"/&gt;
                    &lt;Ship ID="53" Name="Noordam"/&gt;
                    &lt;Ship ID="63" Name="Oosterdam"/&gt;
                    &lt;Ship ID="67" Name="Prinsendam"/&gt;
                    &lt;Ship ID="70" Name="Rotterdam"/&gt;
                    &lt;Ship ID="71" Name="Ryndam"/&gt;
                    &lt;Ship ID="75" Name="Statendam"/&gt;
                    &lt;Ship ID="77" Name="Veendam"/&gt;
                    &lt;Ship ID="79" Name="Volendam"/&gt;
                    &lt;Ship ID="81" Name="Westerdam"/&gt;
                    &lt;Ship ID="86" Name="Zaandam"/&gt;
                    &lt;Ship ID="88" Name="Zuiderdam"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1201988" CruiseLineName="MSC Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="135" Name="MSC Armonia"/&gt;
                    &lt;Ship ID="183" Name="MSC Divina"/&gt;
                    &lt;Ship ID="136" Name="MSC Fantasia"/&gt;
                    &lt;Ship ID="137" Name="MSC Lirica"/&gt;
                    &lt;Ship ID="138" Name="MSC Magnifica"/&gt;
                    &lt;Ship ID="140" Name="MSC Musica"/&gt;
                    &lt;Ship ID="141" Name="MSC Opera"/&gt;
                    &lt;Ship ID="145" Name="MSC Orchestra"/&gt;
                    &lt;Ship ID="134" Name="MSC Poesia"/&gt;
                    &lt;Ship ID="190" Name="MSC Preziosa"/&gt;
                    &lt;Ship ID="144" Name="MSC Sinfonia"/&gt;
                    &lt;Ship ID="143" Name="MSC Splendida"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1030968" CruiseLineName="Norwegian Cruise Line"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="181" Name="Norwegian Breakaway"/&gt;
                    &lt;Ship ID="55" Name="Norwegian Dawn"/&gt;
                    &lt;Ship ID="132" Name="Norwegian Epic"/&gt;
                    &lt;Ship ID="195" Name="Norwegian Escape"/&gt;
                    &lt;Ship ID="115" Name="Norwegian Gem"/&gt;
                    &lt;Ship ID="186" Name="Norwegian Getaway"/&gt;
                    &lt;Ship ID="66" Name="Norwegian Jade"/&gt;
                    &lt;Ship ID="57" Name="Norwegian Jewel"/&gt;
                    &lt;Ship ID="95" Name="Norwegian Pearl"/&gt;
                    &lt;Ship ID="64" Name="Norwegian Sky"/&gt;
                    &lt;Ship ID="59" Name="Norwegian Spirit"/&gt;
                    &lt;Ship ID="60" Name="Norwegian Star"/&gt;
                    &lt;Ship ID="61" Name="Norwegian Sun"/&gt;
                    &lt;Ship ID="65" Name="Pride of America"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1262572" CruiseLineName="Oceania Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="176" Name="Insignia"/&gt;
                    &lt;Ship ID="179" Name="Marina"/&gt;
                    &lt;Ship ID="177" Name="Nautica"/&gt;
                    &lt;Ship ID="178" Name="Regatta"/&gt;
                    &lt;Ship ID="180" Name="Riviera"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1201986" CruiseLineName="Princess Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="98" Name="Caribbean Princess"/&gt;
                    &lt;Ship ID="100" Name="Coral Princess"/&gt;
                    &lt;Ship ID="105" Name="Crown Princess"/&gt;
                    &lt;Ship ID="101" Name="Dawn Princess"/&gt;
                    &lt;Ship ID="108" Name="Diamond Princess"/&gt;
                    &lt;Ship ID="109" Name="Emerald Princess"/&gt;
                    &lt;Ship ID="104" Name="Golden Princess"/&gt;
                    &lt;Ship ID="96" Name="Grand Princess"/&gt;
                    &lt;Ship ID="106" Name="Island Princess"/&gt;
                    &lt;Ship ID="159" Name="Ocean Princess"/&gt;
                    &lt;Ship ID="110" Name="Pacific Princess"/&gt;
                    &lt;Ship ID="197" Name="Regal Princess"/&gt;
                    &lt;Ship ID="112" Name="Royal Princess"/&gt;
                    &lt;Ship ID="125" Name="Ruby Princess"/&gt;
                    &lt;Ship ID="113" Name="Sapphire Princess"/&gt;
                    &lt;Ship ID="103" Name="Sea Princess"/&gt;
                    &lt;Ship ID="107" Name="Star Princess"/&gt;
                    &lt;Ship ID="102" Name="Sun Princess"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1030969" CruiseLineName="Royal Caribbean Int’l"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="22" Name="Adventure of the Seas"/&gt;
                    &lt;Ship ID="142" Name="Allure of the Seas"/&gt;
                    &lt;Ship ID="191" Name="Anthem of the Seas"/&gt;
                    &lt;Ship ID="24" Name="Brilliance of the Seas"/&gt;
                    &lt;Ship ID="38" Name="Enchantment of the Seas"/&gt;
                    &lt;Ship ID="39" Name="Explorer of the Seas"/&gt;
                    &lt;Ship ID="40" Name="Freedom of the Seas"/&gt;
                    &lt;Ship ID="42" Name="Grandeur of the Seas"/&gt;
                    &lt;Ship ID="119" Name="Independence of the Seas"/&gt;
                    &lt;Ship ID="44" Name="Jewel of the Seas"/&gt;
                    &lt;Ship ID="45" Name="Legend of the Seas"/&gt;
                    &lt;Ship ID="90" Name="Liberty of the Seas"/&gt;
                    &lt;Ship ID="47" Name="Majesty of the Seas"/&gt;
                    &lt;Ship ID="48" Name="Mariner of the Seas"/&gt;
                    &lt;Ship ID="52" Name="Navigator of the Seas"/&gt;
                    &lt;Ship ID="124" Name="Oasis of the Seas"/&gt;
                    &lt;Ship ID="188" Name="Quantum of the Seas"/&gt;
                    &lt;Ship ID="68" Name="Radiance of the Seas"/&gt;
                    &lt;Ship ID="69" Name="Rhapsody of the Seas"/&gt;
                    &lt;Ship ID="72" Name="Serenade of the Seas"/&gt;
                    &lt;Ship ID="74" Name="Splendour of the Seas"/&gt;
                    &lt;Ship ID="78" Name="Vision of the Seas"/&gt;
                    &lt;Ship ID="80" Name="Voyager of the Seas"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1260326" CruiseLineName="Seabourn"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="167" Name="Seabourn Legend"/&gt;
                    &lt;Ship ID="168" Name="Seabourn Odyssey"/&gt;
                    &lt;Ship ID="170" Name="Seabourn Quest"/&gt;
                    &lt;Ship ID="169" Name="Seabourn Sojourn"/&gt;
                    &lt;Ship ID="166" Name="Seabourn Spirit"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
              &lt;CruiseLine CruiseLineId="1260327" CruiseLineName="Silversea Cruises"&gt;
                 &lt;ShipList&gt;
                    &lt;Ship ID="171" Name="Silver Cloud"/&gt;
                    &lt;Ship ID="174" Name="Silver Shadow"/&gt;
                    &lt;Ship ID="175" Name="Silver Spirit"/&gt;
                    &lt;Ship ID="173" Name="Silver Whisper"/&gt;
                    &lt;Ship ID="172" Name="Silver Wind"/&gt;
                 &lt;/ShipList&gt;
              &lt;/CruiseLine&gt;
           &lt;/CruiseLinesList&gt;
        &lt;/CruiseLinesResult&gt;
     &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>Im tyring to access it using PHP but no luck its saying that trying to access and non-object property here is my current code</p>
  
  <pre><code>` $xml =  simplexml_load_string($response);
  echo $xml-&gt;children('http://schemas.xmlsoap.org/soap/envelope/')-&gt;children('http://www.w3.org/2001/XMLSchema-instance')-&gt;Body-&gt;children('http://tourico.com/webservices')-&gt;CruiseLinesResult-&gt;CruiseLinesList-&gt;CruiseLine[0]-&gt;Shiplist-&gt;Ship[0];`
  </code></pre>