i have the following xml:
<?xml version="1.0" encoding="WINDOWS-1255"?>
<body>
<HotelBooking>
<customers>
<cust>
<custID>1111111</custID>
<title>MR</title>
<lastName>MASAREWH</lastName>
<firstName>AHMAD IRAKI</firstName>
</cust>
<cust>
<custID>22222222</custID>
<title>MRS</title>
<lastName>HAJ YAHYA IRAQI</lastName>
<firstName>HIMAT</firstName>
</cust>
</customers>
<Details>
<name>Dublin & South</name>
</Details>
</HotelBooking>
</body>
when i try to serialize it to an object i get an exception. System.InvalidOperationException: There is an error in XML document
after trying to edit this XML using notepad++ XML plug-in tool i understood that the problem is the '&' char in the:
<name>Dublin & South</name>
what are my options here if i don't want to change the xml itself (for example replacing the '&' with 'AND' or something like that)? and are there more chars that can fail my serialization process as well ?
thx for any help!