I have a webapi (.NET core 3.1) method which is getting XML and deserializing to object. But some of the tag openings and closings are not same. For example if opens with <Address>
then it closed with </address>
. So the XML is not well-formed. I know XML is case-sensitive, but is there any option that we can ignore that case-sensitivity?
The XML is something like this:
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
<User>UserName</User>
<Address>address line</address>
</Orders>