I have an XML file where
We have defined classes to serialize or deserialize XML.
When we deserialize, if the XML contains like below where \"type<
Define the values of the DocumentType enumeration in the uppercase or use the standard adaptor property trick:
[Description ("The sharepoint's document type.")]
[XmlIgnore]
public DocumentType Type { get; set; }
[Browsable (false)]
[XmlAttribute ("type")]
public string TypeXml
{
get { return Type.ToString ().ToUpperInvariant () ; }
set { Type = (DocumentType) Enum.Parse (typeof (DocumentType), value, true) ; }
}