title: Read XML file using SimpleXML throws Serializer Exception
body: <p>I use SimpleXML to save a simple POJO into XML file and then read it back. I follow <a href="http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#deserialize" rel="nofollow">this</a> tutorial. The file is successfully created, but the reading part is just simply not working. It throws the second exception which comes from <code>serializer.read</code>.</p>
  
  <pre><code>Room room = new Room("1");
  
  Serializer serializer = new Persister();
  try {
      File ff = new File("room.xml");
      serializer.write(room, ff);
  } catch (FileNotFoundException e) {
      System.out.println("FileNotFoundException\n");
  } catch (Exception e) {
      System.out.println("Exception from serializer.write\n");
  }
  
  try {
      File ffi = new File("room.xml");
      Room aroom = serializer.read(Room.class, ffi);
      System.out.println("RoomName: " + aroom.getRid() + "\n");
  } catch (FileNotFoundException e) {
      System.out.println("FileNotFoundException\n");
  } catch (Exception e) {
      System.out.println("Exception from serializer.read\n");
  }
  </code></pre>
  
  <p>Any hint?</p>