How do I remove the class=”Something ” attributes in Xstream .
I use Xstream with annotations
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.
Indeed the problem is not as clearly phrased as it should. My guess is that you are using a non-standard collection or using a field of an interface type for which XStream needs to store the actual class.
In the second case you can just use alias:
xstream.alias("field name", Interface.class, ActualClassToUse.class);See http://markmail.org/message/gds63p3dnhpy3ef2 for more details.