Type: ENUMERATED
Description: ENUMERATED is used
to model constants. If you have list of items, you can model them using
ENUMERATED type.
Example
FavoriteColors
::= ENUMERATED {black, green, red, yellow, white}
FavoriteColors ::= ENUMERATED {black, green, red, yellow, white} Person ::= SEQUENCE { name VisibleString, favoriteColor FavoriteColors }
Sample data for above
schema
personOne Person ::={ name "Rama Krishna", favoriteColor green }
XML encoding of above data
<?xml version="1.0" encoding="UTF-8"?> <Person> <name>Rama Krishna</name> <favoriteColor><green/></favoriteColor> </Person>
No comments:
Post a Comment