code: public static Object xmlToObject(String fileName) throws FileNotFoundException {
  		FileInputStream fi = new FileInputStream(fileName);
  		XMLDecoder decoder = new XMLDecoder(fi);
  		Object object = decoder.readObject();
  		decoder.close();
  		return object;
  	}
docs: Converts an XML file to an object.
  
  @param fileName The filename where to save it to.
  @return The object.
  @throws FileNotFoundException On error.