Groups | Blog | Home
all groups > dotnet xml > november 2005 >

dotnet xml : XmlNode Enum Test


Paul
11/28/2005 7:45:43 AM
Is there a way to test if an XmlNode represents an enum?

Martin Honnen
11/28/2005 5:16:32 PM

[quoted text, click to view]

I don't understand the question, XmlNode is an abstract base class for
several derived classes like XmlDocument, XmlDocumentFragment,
XmlAttribute and others.
How do you think does an XmlDocument or XmlDocumentFragment for instance
look that "represents an enum"?


--

Martin Honnen --- MVP XML
Truong Hong Thi
11/28/2005 8:50:39 PM
Could yuo be more specific?
To check if an string/int is defined in a enum, use Enum.IsDefined
method.

Thi - http://thith.blogspot.com
AddThis Social Bookmark Button