private void parseXML(String xml, Playlist playlist) {
		SAXBuilder builder = new SAXBuilder();
	    Reader in;
	    Document doc = null;
	    Element root = null;
	    
	    try {
		    in = new StringReader(xml);
		    
	    	doc = builder.build(in);
	    	root = doc.getRootElement();
	    	List<Element> children = castList(Element.class, root.getChildren());
	    	
	    	for (int i = 0; i < children.size(); i++) {
	    		String tag = children.get(i).getName();
	    		
	    		if (tag != null && tag.equalsIgnoreCase(TRACKLIST_ELEMENT)) {
	    			List<Element> children2 = castList(Element.class, children.get(i).getChildren());
	    			
	    			for (int j = 0; j < children2.size(); j++) {
	    				String attributeName = children2.get(j).getName();
	        		
	        	    	if (attributeName.equalsIgnoreCase(TRACK_ELEMENT)) {
	        	    		List<Element> children3 = castList(Element.class, children2.get(j).getChildren());
	        	    		buildPlaylistEntry(children3, playlist);
	        	    	}
	    			}
	    		}
	    	}
	    } catch (JDOMException e) {
	    } catch (IOException e) {
	    } catch (Exception e) {
	    }
	}