Skip to content

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

Description

@KingS770234358

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions