private void createSlide(Attributes attrs) {
		slide = new Slide(slideDef);
		// loop through all attributes, setting appropriate values
		for (int i = 0; i < attrs.getLength(); i++) {
			if (attrs.getQName(i).equals("id"))
				slide.setId(Integer.valueOf(attrs.getValue(i)));
			else if (attrs.getQName(i).equals("backgroundcolor"))
				slide.setBkCol(new Color(Integer.valueOf(attrs.getValue(i)
						.substring(1), 16)));
			else if (attrs.getQName(i).equals("duration"))
				slide.setDuration(Integer.valueOf(attrs.getValue(i)));
			else if (attrs.getQName(i).equals("nextslideid"))
				slide.setNext(Integer.valueOf(attrs.getValue(i)));
			else if (attrs.getQName(i).equals("previewpath")){
				String path = attrs.getValue(i).replace('\\', '/');
				if (isLocal(path)){
					int directoryPathEnd = xmlPath.lastIndexOf('/');
					String directoryPath = xmlPath.substring(0,
						directoryPathEnd + 1);
					slide.setPrevPath(directoryPath + path);
				}else {
					// if remote download file and insert local path
					try {
						slide.setPrevPath(RemoteFileRetriever.downloadFile(path));
					} catch (MalformedURLException e) {
						System.out.println("Could not download remote preview image"
								+ e.getMessage());
					}
				}
			}
				slide.setPrevPath(attrs.getValue(i));
		}
	}