I’m trying to use Simple XML to interpret a XML file. Teorically i must add @Attribute before String var; but i can’t do it.
Eclipse tell me this: "Attribute cannot be resolved to a type"
How to add these anotations?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems to me that the only possibility is that you don’t have the package imported correctly, specifically you need:
import org.simpleframework.xml.Attribute;
There are some other (unusual) complications discussed here Stack overflow 1910694