title: how to parse xml file using dom parser
body: <p>do anyone know and can help me to parse this xml using dom parser please ? i am new to this and i don't know how to do it.
  the problem is that this xml code is complex and tutorials i found on the internet are too easy as examples, so i am having some issues regarding this subject.
  Thnaks</p>
  
  <p>this is the xml file : </p>
  
  <pre><code>&lt;Region title="test-1" &gt;
          &lt;Branches&gt;
              &lt;Branch
                  cityName="city-1"
                  description="address" &gt;
                  &lt;Phone address="00000000" /&gt;
                  &lt;Phone address="00000001" /&gt;
                  &lt;Phone address="00000002" /&gt;
                  &lt;Phone address="00000003" /&gt;
              &lt;/Branch&gt;
              &lt;Branch
                  cityName="city-2"
                  description="address-2" &gt;
                  &lt;Phone address="00000004" /&gt;
                  &lt;Phone address="00000005" /&gt;
                  &lt;Phone address="00000006" /&gt;
                  &lt;Phone address="00000007" /&gt;
              &lt;/Branch&gt;
              &lt;Branch
                  cityName="city-3"
                  description="address-3" &gt;
                  &lt;Phone address="00000008" /&gt;
                  &lt;Phone address="00000009" /&gt;
                  &lt;Phone address="00000010" /&gt;
                  &lt;Phone address="00000011" /&gt;
              &lt;/Branch&gt;
          &lt;/Branches&gt;
  
          &lt;ATMs&gt;
              &lt;ATM
                  cityName="city-1"
                  description="address-1" &gt;
              &lt;/ATM&gt;
              &lt;ATM
                  cityName="city-2"
                  description="address-2" &gt;
              &lt;/ATM&gt;
              &lt;ATM
                  cityName="city-3"
                  description="address-3" &gt;
              &lt;/ATM&gt;       
          &lt;/ATMs&gt;
      &lt;/Region&gt;
  
      &lt;Region title="test-2" &gt;
          &lt;Branches&gt;
              &lt;Branch
                  cityName="city-1"
                  description="address" &gt;
                  &lt;Phone address="00000000" /&gt;
                  &lt;Phone address="00000001" /&gt;
                  &lt;Phone address="00000002" /&gt;
                  &lt;Phone address="00000003" /&gt;
              &lt;/Branch&gt;
              &lt;Branch
                  cityName="city-2"
                  description="address-2" &gt;
                  &lt;Phone address="00000004" /&gt;
                  &lt;Phone address="00000005" /&gt;
                  &lt;Phone address="00000006" /&gt;
              &lt;/Branch&gt;
              &lt;Branch
                  cityName="city-3"
                  description="address-3" &gt;
                  &lt;Phone address="00000008" /&gt;
                  &lt;Phone address="00000009" /&gt;
              &lt;/Branch&gt;
          &lt;/Branches&gt;
  
          &lt;ATMs&gt;
              &lt;ATM
                  cityName="city-1"
                  description="address-1" &gt;
              &lt;/ATM&gt;
              &lt;ATM
                  cityName="city-2"
                  description="address-2" &gt;
              &lt;/ATM&gt;
              &lt;ATM
                  cityName="city-3"
                  description="address-3" &gt;
              &lt;/ATM&gt;       
          &lt;/ATMs&gt;
      &lt;/Region&gt;
  </code></pre>