I have an XML file that pulls from a database. I'm getting an error on certain strings and URL's because it contains characters that the XML is treating like code and either gives a syntax error or says entity not defined. Is there a way, since the data is really a string, to set up the XML so when the data is in quotes, it ignores it as code and treats it like text? I created an example with the marker name and the URL having the errors. The marker name has the & sign and the URL has msa, ll, spn, and iwloc it doesn't like.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<markers>
<marker name="C&O Canal Trail"
address=""
city=""
state=""
zip=""
image=""
width=""
height=""
lat="39.693978"
lng="-78.154822"
category="KML"
notes=""
url="https://maps.google.com/maps/ms?msid=209491726150360274926.0004e18eed520de4890e6&msa=0&ll=39.213103,-77.295685&spn=0.619262,1.540833&iwloc=0004e18eee21c28a5a313"
hike_distance=""
hike_trail_skill_level=""
hike_points_of_interest=""
Camping_Amenities=""
Camping_Best_Sites=""
Camping_Notes=""
/>
</markers>