Storing URLs With Query Strings In XML

Suppose you have a URL like  http://www.test.com?1=2&2=3 and you need to store it in an XML file like the one below.  The & character will cause and error.  Replace the & with & e.g. http://www.test.com?1=2&2=3

<?xml version=”1.0″ encoding=”utf-8″ ?>
<Regions>
<Europe>
<Region ID=”1981″ Name=”Denmark” IAURL=”http://www.test.com?1=2&2=3/>
</Europe>
</Regions>

 

 

Advertisement