The class EnumSingleValueConverter could be changed to read enum im lower case format:
@XStreamAlias("protocol")
class Protocol{
@XStreamAsAttribute
TYPE type;
}
enum TYPE {
ASCII,BINARY;
}
Xml format:
<protocol type="ascii"/>
I think a change is simple and very useful,needs only a toUpperCase and toLowerCase on convert method.