XmlAttribute tag in C# - "Appending /"

Hi Guys,
I'm trying to attach a simple xmlattribute to xmlelement with the following code:

 XmlElement acct_name = xdoc.CreateElement("ACCT_NAME");
 XmlAttribute att = xdoc.CreateAttribute("value");
 att.InnerText = "GBSID";
 acct_name.Attributes.Append(att);

In the output though it has "\"
<ACCT_NAME value=\"GBSID\" />

Can someone pls advise why this is occuring?

Thanks,
Nick
sharnit2010Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
lazyberezovskyConnect With a Mentor Commented:
Are you sure you get this escaped quotes in output file? Or you see em in debug?
0
 
sharnit2010Author Commented:
Great!
What a silly thing not to check!
0
All Courses

From novice to tech pro — start learning today.