title: Jquery/XML .find() function to retrieve xml data
body: <p>This may seem trivial, but I can't figure it out how to 1) retrieve the XML data and 2) find specific content within a child element with this specific XML structure!</p>
  
  <p>XML: </p>
  
  <pre><code>&lt;UploadResults&gt;
    &lt;Header&gt;
      &lt;Header_ID&gt;1&lt;/Header_ID&gt; 
      &lt;PlanYear&gt;2015&lt;/PlanYear&gt; 
      &lt;PlanVersion&gt;FP01&lt;/PlanVersion&gt; 
    &lt;/Header&gt;
    &lt;ErrorSet&gt;
      &lt;Row&gt;
        &lt;Row_Id&gt;0&lt;/Row_Id&gt; 
        &lt;Error_String&gt;Validation successful with Zero Errors&lt;/Error_String&gt; 
      &lt;/Row&gt;
      &lt;Row&gt;
         ...
      &lt;/Row&gt;
    &lt;/ErrorSet&gt;
  &lt;/UploadResults&gt;
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url: "testurl",
      dataType: "xml",
      success: function(xml) {
          $(xml).find('UploadResults').each(function(){  
              var errMsg = $(this).find('Error_String').text(); // set variable as content in child 'Error_String'
              $(".validationView").append($(this).text());    // display all xml data on div class
              if (errMsg=="Validation successful with Zero Errors") {
                  $("span.proceedBTN").show();
              } 
          });
      }
  });
  </code></pre>
  
  <p>The script works with the following XML Structure so I am not sure why the script doesn't return any data from the first xml structure. (Of course, I would change the root name from UploadResults to Rowsets)</p>
  
  <pre><code>&lt;Rowsets&gt;
    &lt;Rowset&gt;
      &lt;Columns&gt;
        &lt;Column Description="Header_Id"/&gt;
        &lt;Column Description="PlanYear"/&gt;
        &lt;Column Description="PlanVersion"/&gt; 
      &lt;/Columns&gt;
      &lt;Row&gt;
        &lt;Row_Id&gt;0&lt;/Row_Id&gt; 
        &lt;Error_String&gt;Validation successful with Zero Errors&lt;/Error_String&gt; 
      &lt;/Row&gt;
      &lt;Row&gt;
         ...
      &lt;/Row&gt;
    &lt;/Rowset&gt;
  &lt;/Rowsets&gt;
  </code></pre>