I would like to search an XDocument for occurances of SerializableClass inside it. When SerializableClass has the XmlRoot attribute it will have a different name than typeof(SerializableClass).Name. How can I look up the XmlRoot attribute of this class?
I would like to search an XDocument for occurances of SerializableClass inside it. When
Share
You mean that you want to find the name of the class that is used to represent a certain element in your XML ?
This is how I do it: