title: Getting node values from XML and adding them to array?
body: <p>My XML looks like this:</p>
  
  <pre><code>&lt;photo&gt;photo1.jpg&lt;/photo&gt;
  &lt;photo&gt;photo2.jpg&lt;/photo&gt;
  </code></pre>
  
  <p>I can get the value of each photo node by doing something like:</p>
  
  <pre><code>var myPhoto = $(this).find('photo').text();
  </code></pre>
  
  <p>I'm trying to get an array of nodes like so:</p>
  
  <pre><code>myPhotoArray.push(myPhoto); 
  </code></pre>
  
  <p>When I push this to an array how do I add a comma separator for each node? It prints all the node values out on one line (photo1.jpgphoto2.jpg) Thank you! </p>