public static String getOtherItem(String item){
	try {
	    File file = new File("/Users/anuj/Documents/Adobe Flash Builder 4.6/Puppybox/bin-debug/assets/syllabus.xml");
	    DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
	    Document doc = dBuilder.parse(file);
	    NodeList first = doc.getElementsByTagName("item1");
	    NodeList second = doc.getElementsByTagName("item2");
	    
	    if (first.getLength() == second.getLength()){
		for (int i =0; i<first.getLength(); i++){
		    if (first.item(i).getTextContent().trim().equals(item)){
			return second.item(i).getTextContent().trim();
		    } else if (second.item(i).getTextContent().trim().equals(item)) {
			return first.item(i).getTextContent().trim();
		    }
		}
		return "error";
	    } else {
		return "error";
	    }
	    
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    return "error";
	}
    }