Posted on 2006-07-12
i have a class which contains xml enums, I am not able to use integers or any special characters
I cannot use like <XmlEnum(Name:="CHG")> 1 ...i will get a error.... as end of enum expected ....I have to use ( _ ) Underscore infront of 1 inorder to use 1 but when i bind it to a dropdownlist the display text will be _1. How to avoid the _1 inside dropdownlist. I have avoided through the code but how to achieve this using only XMLEnum.
This class was created using a xmlschema from xsdobjectgen.exe .
I have to use like the below code i have written
Public Module Declarations
Public Const SchemaVersion As String = ""
Public Enum PaymentType
<XmlEnum(Name:="CHG")> _1 ---------------> (I want to avoid _1)