title: Accessing namespace Within XML to parse the correct data PHP/Laravel
body: <p>I'm currently trying to parse some sweet sweet XML, only to realise that i have no idea how to access the namespacing, i need to parse the English.</p>
  
  <p>is anyone so kind a to help a brother out x</p>
  
  <p>link to xml = <a href="https://xml.inmobalia.com/361/e55d03759a1004da29b3e364faaff2e1.xml" rel="nofollow noreferrer">https://xml.inmobalia.com/361/e55d03759a1004da29b3e364faaff2e1.xml</a></p>
  
  <p>for example</p>
  
  <pre><code>&lt;property&gt;
      &lt;descriptions&gt;
          &lt;property_desc lang="en"&gt;
          &lt;/property_desc&gt;  
          &lt;property_desc lang="es"&gt;
          &lt;/property_desc&gt;  
      &lt;/descriptions&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>PHP - here what I've tried</p>
  
  <pre><code>foreach ($data as $key =&gt; $val) {
      $filterd[$key]['main_advert_1'] = json_encode([
          "main_advert" =&gt; (isset($val['descriptions']['long_description']['en'])
              and !empty($val['descriptions']['long_description']['en'])
          )
          ? $val['descriptions']['long_description']['en'] : "N.A"]);
  }
  </code></pre>