title: Using XML with jquery to populate a slider with text
body: <p>Working on a small project where I want to implement a jquery slider to hold testimonials on the website's support page. To make life easier I want the testimonials to be contained in an XML document. The slider works fine on the page but when I try to use a function to get the testimonial text from the XML document, it works as well as a North Korean rocket.</p>
  
  <p>Scripts in :</p>
  
  <pre><code>&lt;head&gt;
  &lt;title&gt;Crutchfield Customer Support - Online Support Center&lt;/title&gt;
  &lt;!--[if lt IE 9]&gt;
  &lt;script src="//html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;link rel="stylesheet" type="text/css" href="support.css" /&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script src="slider/jquery.bxSlider.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    $(document).ready(function(){
      $('#slider1').bxSlider({
      auto: true,
      autoControls: false,
      nextText: '',
      prevText: ''
      });
    });
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      $.ajax({
          type: "GET",
          url: "testimonials.xml",
          dataType: "xml",
          success: function(xml) {
              var select = $('#slider1');
              $(xml).find('testimonials').each(function(){
                  var text = $(this).find('text').text();
                  select.append("&lt;li class='test'&gt;"+text+"&lt;/li&gt;");
              });
          }
      });
  });
  &lt;/script&gt;
  
  &lt;/head&gt;
  </code></pre>
  
  <p>HTML for the slider:</p>
  
  <pre><code>    &lt;div id="testimonials"&gt;
          &lt;div class="testimonialGroupOne"&gt;
              &lt;ul id="slider1"&gt;
                  &lt;li&gt;loading&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I may add another slider but probably not, could the problem be with the divitis?</p>
  
  <p>So basically the ordered list doesn't populate, here's the xml file so far:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;testimonials&gt;
      &lt;text&gt;"I have been doing business with Crutchfield for over fifteen years and have yet to have a negative experience. Their customer service is second to none."&lt;/text&gt;
      &lt;text&gt;"I've been a Crutchfield customer for over 20 years. I've found their customer service and technical support to surpass every other vendor in this business. Without exception, every contact I've had with Crutchfield employees, I have found them to be professional, competent, respectful and patient."&lt;/text&gt;
  &lt;/testimonials&gt;
  </code></pre>