I want to get a xml tag like:
<link url="http://www.xxx.com/?&q=xxx">xxx</link>
but the SetAttribute
method changes &
to &
, how can I prevent that?
my code:
XmlElement Link = doc.CreateElement("Link");
Link2.SetAttribute("url", "http://www.xxx.com/?&q=xxxx");
please help me ! thanks!