Skip to content

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

@KingS770234358

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.

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