title: JavaScript to parse XML
body: <p>I want to read xml file using java script, the xml contains below code.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;?mso-infoPathSolution solutionVersion="1.0.0.386" productVersion="12.0.0" PIVersion="1.0.0.0" href="http://sites/Software_Release/DatastageReleaseRequests/Datastage%20Release%20Requests/Forms/template.xsn" name="urn:schemas-microsoft-com:office:infopath:Datastage-Release-Requests:-myXSD-2011-07-18T09-53-25" ?&gt;&lt;?mso-application progid="InfoPath.Document"?&gt;&lt;?mso-infoPath-file-attachment-present?&gt;&lt;my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:s0="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-07-18T09:53:25" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-gb"&gt;
      &lt;my:Project_Details&gt;
          &lt;my:Project_Title&gt;Warranty &lt;/my:Project_Title&gt;
          &lt;my:Project_Code&gt;xxxxx&lt;/my:Project_Code&gt;
  
      &lt;/my:Project_Details&gt;
      &lt;my:Change_Details&gt;
          &lt;my:StartDateTime&gt;2014-09-02T16:00:00&lt;/my:StartDateTime&gt;
          &lt;my:EndDateTime&gt;2014-09-03T18:00:00&lt;/my:EndDateTime&gt;
          &lt;my:Change_Number&gt;0000000&lt;/my:Change_Number&gt;
          &lt;my:TaskNumber&gt;&lt;/my:TaskNumber&gt;
          &lt;my:DryRunDate xsi:nil="true"&gt;&lt;/my:DryRunDate&gt;
          &lt;my:FirstLiveRunDate&gt;2014-09-02&lt;/my:FirstLiveRunDate&gt;
          &lt;my:WarrantyEndDate&gt;2014-09-03&lt;/my:WarrantyEndDate&gt;
          &lt;my:field8&gt;&lt;/my:field8&gt;
      &lt;/my:Change_Details&gt;
      &lt;my:Release_Details&gt;
          &lt;my:HostGroup&gt;
              &lt;my:HostsTable&gt;
                  &lt;my:Domain_and_Host&gt;hostname&lt;/my:Domain_and_Host&gt;
                  &lt;my:Project&gt;&lt;/my:Project&gt;
              &lt;/my:HostsTable&gt;
          &lt;/my:HostGroup&gt;
          &lt;my:DeployStartDateTime&gt;2014-09-02T16:30:00&lt;/my:DeployStartDateTime&gt;
      &lt;/my:Release_Details&gt;
      &lt;my:Header&gt;
          &lt;my:RequestID&gt;sd2914&lt;/my:RequestID&gt;
          &lt;my:RequestNumber&gt;2914&lt;/my:RequestNumber&gt;
          &lt;my:RequestHeader&gt;sd&lt;/my:RequestHeader&gt;
      &lt;/my:Header&gt;
      &lt;my:Release_Section&gt;
  </code></pre>
  
  <p>I want to retrieve values of <code>my:Project_Title</code>, <code>my:Project_Code</code>, <code>my:Change_Number</code> and <code>my:Domain_and_Host</code>.  I am very new to scripting, please help.</p>
  
  <p>Thanks </p>