simplexml icon indicating copy to clipboard operation
simplexml copied to clipboard

parse xml string to java bean when tags in xml sring contain attribute "class"

Open KingS770234358 opened this issue 3 years ago • 0 comments

I want to parse an xml string to java bean. tags in xml sring contain attribute "class", just like this<parameter name = "age" value="10" class="java.lang.String"/>. my java bean for parameter just like this: @Root(xxx) public Parameter{ @Attribute(name = "name") private String name; @Attribute(name = "value") private String value; @Attribute(name = "class") private String jClass; } As shown above, the field 'jClass' doesn't work at all.

KingS770234358 avatar Aug 21 '21 19:08 KingS770234358