title: filter xml nodes in javascript
body: <p>I got a xml like this:</p>
  
  <pre><code>    &lt;row1&gt;
    &lt;name /&gt;
    &lt;data&gt;
       &lt;content&gt;Oct - Dec 13&lt;/content&gt;
       &lt;content&gt;Jan - Mar 14&lt;/content&gt;
       &lt;content&gt;Apr - Jun 14&lt;/content&gt;
       &lt;content&gt;Jul - Sep 14&lt;/content&gt;
       &lt;content&gt;Oct - Dec 14&lt;/content&gt;
       &lt;content&gt;0##8##&lt;/content&gt;
       &lt;content&gt;0##9##&lt;/content&gt;
    &lt;/data&gt;
      &lt;/row1&gt;
  </code></pre>
  
  <p>I want to filter the node and then push in the array, for example, i just want the node without "##",and then push the  elements into a array. </p>
  
  <p>Here is the code i edit, but no lucks</p>
  
  <pre><code> $xml.find('row1 content').each(function(i, content) {
  
                  if ('content:contains("0")'){
                  $(this).text("1");
  
                  }
                  else{
                  options.xAxis.categories.push($(content).text());
                  }
              });
  </code></pre>
  
  <p>Could anyone tell me where is wrong? </p>