How do I stop XElement.Save from escaping characters?
Posted
by Daniel I-S
on Stack Overflow
See other posts from Stack Overflow
or by Daniel I-S
Published on 2010-04-02T00:08:22Z
Indexed on
2010/04/02
0:13 UTC
Read the original article
Hit count: 728
I'm populating an XElement
with information and writing it to an xml file using the XElement.Save(path)
method. At some point, certain characters in the resulting file are being escaped - for example, >
becomes >
.
This behaviour is unacceptable, since I need to store information in the XML that includes the >
character as part of a password. How can I write the 'raw' content of my XElement object to XML without having these escaped?
© Stack Overflow or respective owner