Click here to Skip to main content
15,905,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir,
I want to create a xml file from all enum Class Data.
Help me.
Enum Class Like this:
C#
public enum FMS_Enumeration
   {
       [DescriptionAttribute("Cash")]
       Cash,

       [DescriptionAttribute("Bank")]
       Bank,

       [DescriptionAttribute("Journal")]
       Journal,

       [DescriptionAttribute("Contra")]
       Contra,

       [DescriptionAttribute("Credit")]
       Credit,

       [DescriptionAttribute("Debit")]
       Debit,

       [DescriptionAttribute("Cash Payment")]
       CashPayment,

       [DescriptionAttribute("Cash Receipt")]
       CashReceipt,

       [DescriptionAttribute("Bank Payment")]
       BankPayment,
   }
Posted
Updated 6-Feb-12 19:41pm
v3

1 solution

Hi,

The most simple way is to serialize your enum into xml using .NET provided serialization methods...
You have so many examples on internet. Just google[^] for it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900