I need to pass the & character inside an XML element, but its not liking it, here is a code sample:
XmlDocument doc = new XmlDocument();
XmlElement batch = doc.CreateElement("Batch");
string item = "<field>http://mylink.com/page.aspx?id=1&disp=2</field>"
batch.InnerXml = item;
Its absolutely crucial I put this link inside, so does anyone know how to get around this?
Thank you