Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KingS770234358 opened this issue Aug 21, 2021 · 0 comments

Comments

@KingS770234358
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant