title: Jquery load set of images from XML file
body: <p>hi i've got a script like this :</p>
  
  <pre><code>jQuery(window).ready(function($) {
      $.fn.prettyPhoto();
      $.get("xml/kategoria1.xml",{},function(xml){
      $('image',xml).each(function(i) {
          lightbox = $(this).find("lightbox").text();
        openLightbox(lightbox)
      });
  });
  });
  
  function openLightbox(path) {
      $.prettyPhoto.open(path);
  </code></pre>
  
  <p>And it opens only a single image from xml, i want to open all images from xml called lightbox. </p>
  
  <p>here is my XML file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;images&gt;
  
  &lt;image source="Zdjecia/Galeria/Kategoria1/Miniaturki/image1.jpg" lightbox="Zdjecia/Galeria/Kategoria1/Duze/image1.jpg"&gt;
  &lt;lightbox&gt;Zdjecia/Galeria/Kategoria1/Duze/image1.jpg&lt;/lightbox&gt;
  
  &lt;/image&gt;
  
  &lt;image source="Zdjecia/Galeria/Kategoria1/Miniaturki/image2.jpg" lightbox="Zdjecia/Galeria/Kategoria1/Duze/image2.jpg"&gt;
  &lt;lightbox&gt;Zdjecia/Galeria/Kategoria1/Duze/image2.jpg&lt;/lightbox&gt;
  
  &lt;/image&gt;
  
  &lt;image source="Zdjecia/Galeria/Kategoria1/Miniaturki/image3.jpg" lightbox="Zdjecia/Galeria/Kategoria1/Duze/image3.jpg"&gt;
  &lt;lightbox&gt;Zdjecia/Galeria/Kategoria1/Duze/image3.jpg&lt;/lightbox&gt;
  &lt;/image&gt;
  
  
  &lt;/images&gt;
  </code></pre>
  
  <p>Please for help.</p>
  
  <p>Greetings Krystian</p>