code: public static final PhotoList<Photo> createPhotoList(Element photosElement) {
          PhotoList<Photo> photos = new PhotoList<Photo>();
          photos.setPage(photosElement.getAttribute("page"));
          photos.setPages(photosElement.getAttribute("pages"));
          photos.setPerPage(photosElement.getAttribute("perpage"));
          photos.setTotal(photosElement.getAttribute("total"));
  
          NodeList photoNodes = photosElement.getElementsByTagName("photo");
          for (int i = 0; i < photoNodes.getLength(); i++) {
              Element photoElement = (Element) photoNodes.item(i);
              photos.add(PhotoUtils.createPhoto(photoElement));
          }
          return photos;
      }
docs: Parse a list of Photos from given Element.
  
  @param photosElement
  @return PhotoList