I am writting a C++ program that turns CSV files into XML. part of my CSV file has a city name with an AMPERSAND in it....when I populate the information to the XML I can not validate my code. is there a way to code C++ so that XML validates the word even though the ampersand is present... (not sure if this is being spit out properly, view below..)
<cit:city>
<cit:name> Inisa </cit:name>
<cit:district> Oyo & Osun </cit:district>
<cit:population> 119800 </cit:population>
</cit:city>
this is my XML code after processing through my C++ program....
below is my error code in validation
Errors in the XML document:
10990: 27 The entity name must immediately follow the '&' in the entity reference.