title: How to remove duplicates using jquery or extjs?
body: <p>I want to store the output in an array and remove the duplicates</p>
  
  <pre><code> $(document).ready(function() {
      $.ajax({
          type: "GET",
          url: "cview.xml",
          dataType: "xml",
          complete: function(data, status) {
              parseXml(data.responseXML);
          }
      });
  });
  
  function parseXml(xml) {
      $(xml).find("containmentView").each(function() {
  
          var tabarr = $(this).attr("type");
          alert(tabarr);
  
  
      });
  
  }
  </code></pre>
  
  <p>XML feed</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
          &lt;entry&gt;
          ----
          ----
          &lt;cView type="D1"&gt;
                          &lt;field name="TargetObjectClass"&gt;Disk&lt;/field&gt;
                          &lt;field name="TargetObjectName"&gt;DISK A1&lt;/field&gt;
                          &lt;field name="DisplayName"&gt;DISK-Name&lt;/field&gt;
                          &lt;field name="MaxAvgDataRate KB/sec"&gt;50.00 KB/sec&lt;/field&gt;
                          &lt;field name="MaxAvgQueueDepth"&gt;50.00&lt;/field&gt;
                      &lt;/cView&gt;
                      &lt;cView type="D2"&gt;
                          &lt;field name="TargetObjectClass"&gt;Disk&lt;/field&gt;
                          &lt;field name="TargetObjectName"&gt;DISK B2&lt;/field&gt;
                          &lt;field name="DisplayName"&gt; Disk-Name 2 &lt;/field&gt;
                          &lt;field name="MaxAvgDataRate KB/sec"&gt;60.00 KB/sec&lt;/field&gt;
                          &lt;field name="MaxAvgQueueDepth"&gt;60.00&lt;/field&gt;
                      &lt;/cView&gt;
  
  
          ...
          &lt;/entry&gt;
  </code></pre>