Reading Element attribute value using XStream
问题 I am not able lookup attribute value of an element. My XML is <Person> <BirthDate>2008-01-04</BirthDate> <FirstName>Affo</FirstName> <Gender tc="200">Male</Gender> <LastName></LastName> <Occupation>false</Occupation> <Age>4</Age> </Person> I am interested in <Gender tc="200">Male</Gender> . My POJO looks like this: private String FirstName; private String LastName; private String Occupation; @XStreamAsAttribute @XStreamAlias("tc") private String genderTC; private String Gender; private String