Name of root ignored if reading XML into classes
Brought to you by:
niallg
In Simple 2.7.1 it is possible to read a class from XML although the names of the roots are different. For example XML root "b" could be read into class A ("a") if their remaining elements match.
@org.simpleframework.xml.Root
class A {
}
public class Test {
public static void main(String args[]) throws Exception {
A a = new org.simpleframework.xml.core.Persister().read(A.class, "<b/>");
}
}