I am trying to deserialize an xml file, But I am having errors on deserializing it using the code below:
try {
Strategy strategy = new CycleStrategy("id", "ref");
Serializer serializer = new Persister(strategy);
File source = new File("ActionToLettersAndBorrowers.xml");
ProcessEngineObject op = serializer.read(ProcessEngineObject.class, source);
System.out.println(op.getName());
} catch (Exception e) {
e.printStackTrace();
}
Am i missing something out? I got the idea from simplexml website.