<?xml version="1.0" encoding="UTF-8"?><loan xmlns="main" xmlns:addr="address" xmlns:borr="borro">In above XML attribute borr:borrowerNumber has namespace borr. but all the child of this attribute is not having namespace. So while deserialization I am not getting correct value for property firstname,lastname,middlename and nameprefiix property.
<borrowerList><borrower><borr:borrowerNumber>1</borr:borrowerNumber><addr:addressLineList><address Line>adress line</addressLine></addr:addressLineList><borr:borrowerName><borr:firs tName>first name1</borr:firstName><middleName /><lastName>last name 1</lastName><nameSuffix /></borr:borrowerName><addr:cityName>city 1</addr:cityName><addr:postalCode>postal code 1</addr:postalCode><addr:stateCode>rr</addr:stateCode></borrower><borrower><borr:borrowerNumber>2</borr:borrowerNumber><addr:addressLineList><address Line>adress line 2</addressLine></addr:addressLineList><borr:borrowerName><firstName /><middleName /><lastName /><nameSuffix /></borr:borrowerName><addr:cityName>city name 2</addr:cityName><addr:postalCode>xxxxxxx 2</addr:postalCode><addr:stateCode>ff</addr:stateCode></borrower></borrowerList></loan>
What should be C#.Net codesnippet in this case?
Thanks for help.