Menu

#33 Name of root ignored if reading XML into classes

v1.0 (example)
open
nobody
validation (2)
5
2013-11-16
2013-11-16
philipp
No

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/>");
    }
}

Related

Bugs: #35

Discussion


Log in to post a comment.