I have a class Image
implementing ISerializable
:
[Serializable]
[XmlRoot(ElementName = "IMAGE")]
[TypeConverter(typeof(ImageTypeConverter))]
public class ImageResource : ISerializable {
[XmlAttribute(AttributeName = "TYPE")]
public string Extension{
get;
set;
}
}
I just want to know if we can get the xml node for an object of this class? Suppose this object is serializes as
<IMAGE TYPE=".mpg"/>
I want to get this Node content as string.