Persistenceexception -duplicate Annotation Of Name In Simple Xml Deserialization
I test simple xml tutorial from this link. I change the xml file like this. abc
Solution 1:
You need to annotate your field x
within your class Example7
to use the namespace ns1
.
@Element@Path("a/b")
@Namespace(reference="http://www.blah.com/ns/a", prefix="ns1")
private String x;
Also see the corresponding section of Simple XML tutorial.
Post a Comment for "Persistenceexception -duplicate Annotation Of Name In Simple Xml Deserialization"