title: Reading XML file
body: <p>I'm looking to parse an XML file into a reader.  The example below I have used and works a treat with attributes.  I'm looking to use Elements and I am unsure what to change in the code to make it work.  the get Attribute option appears the most logical to change however as my elements are different I'm unsure what to change in the getElementsByTagName.  I assume I duplicate this?</p>
  
  <p>I have used this example (<a href="https://stackoverflow.com/questions/54214603/read-external-xml-files-in-android/56952612#56952612">read external XML files in Android</a> ) of how to read and parse an XML file which works fine.</p>
  
  <pre><code>&lt;Survey&gt;
          &lt;Job&gt;
               &lt;JobNo&gt;123456&lt;/JobNo&gt;
               &lt;JobType&gt;1&lt;/JobType&gt;
               &lt;Customer&gt;AutoAppliance&lt;/Customer&gt;
               &lt;Contact&gt;Barry Scott&lt;/Contact&gt;
               &lt;Salutation&gt;Mr&lt;/Salutation&gt;
               &lt;FirstName&gt;Keith&lt;/FirstName&gt;
               &lt;SurName&gt;Hawkins&lt;/SurName&gt;
               &lt;CompanyName&gt;&lt;/CompanyName&gt;
               &lt;Address1&gt;10 St. Thomas Court&lt;/Address1&gt;
               &lt;Address2&gt;Wimbledon&lt;/Address2&gt;
               &lt;Address3&gt;&lt;/Address3&gt;
               &lt;TownCity&gt;LONDON&lt;/TownCity&gt;
               &lt;County&gt;&lt;/County&gt;
               &lt;Postcode&gt;E1 1EE&lt;/Postcode&gt;
               &lt;Phone1&gt;0800 000 000&lt;/Phone1&gt;
               &lt;Phone2&gt;01222 222 111&lt;/Phone2&gt;
               &lt;Email1&gt;anotheremail@googlemail.com&lt;/Email1&gt;
               &lt;Email2&gt;&lt;/Email2&gt;
          &lt;/Job&gt;
          &lt;Job&gt;
               &lt;JobNo&gt;789012&lt;/JobNo&gt;
               &lt;JobType&gt;2&lt;/JobType&gt;
               &lt;Customer&gt;Bristol&lt;/Customer&gt;
               &lt;Contact&gt;Paul Pogba&lt;/Contact&gt;
               &lt;Salutation&gt;Mrs&lt;/Salutation&gt;
               &lt;FirstName&gt;Belinda&lt;/FirstName&gt;
               &lt;SurName&gt;Carlisle&lt;/SurName&gt;
               &lt;CompanyName&gt;&lt;/CompanyName&gt;
               &lt;Address1&gt;34 Test Lane&lt;/Address1&gt;
               &lt;Address2&gt;&lt;/Address2&gt;
               &lt;Address3&gt;&lt;/Address3&gt;
               &lt;TownCity&gt;Anytown&lt;/TownCity&gt;
               &lt;County&gt;West Sussex&lt;/County&gt;
               &lt;Postcode&gt;BN1 0TT&lt;/Postcode&gt;
               &lt;Phone1&gt;01903 333 444&lt;/Phone1&gt;
               &lt;Phone2&gt;07900 777 777&lt;/Phone2&gt;
               &lt;Email1&gt;mytestemail@icloud.com&lt;/Email1&gt;
               &lt;Email2&gt;&lt;/Email2&gt;
         &lt;/Job&gt;   
  </code></pre>
  
  <p></p>