Hi I have a Java enum and I want serialize a variable containing an enum value back and forth from XML for persistence. My enum is defined like this...
public enum e_Type
{
e_Unknown,
e_Categoric,
e_Numeric
}
My variable is declared like this...
private e_Type type;
I want it to go into an XML tag like this...
<type>value</type>
What's the best practice for persisting values of enums in XML?