KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 " attribute is in upper case, its throwing error like there is an error in xml(2,2) like that. <document text="BlankPDF" name="BlankPDF" type="PDF" path="" /> ... [DescriptionAttribute("The sharepoint's document type.")] [XmlAttribute("type")] public DocumentType Type { get; set; } public enum DocumentType { pdf, ppt, pptx, doc, docx, xlsx, xls, txt, jpg, bmp, jpeg, tiff, icon } this is how we have defined the attribute. Is it possible to ignore case while deserializing XML?
Tags (comma-separated)
Save Edits
Cancel