how to prevent c# XmlElement.SetAttribute change '&' to '&'?

gemnenjoync

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