Quantcast
Channel: Writing special characters to xml in c# - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Andras Zoltan for Writing special characters to xml in c#

If you don't want it to be output using escaped characters - then use a StringBuilder or StreamWriter.The fact is, though, you're trying to generate bad XML that will not be parseable by any XML reader...

View Article


Answer by Jacek Gorgoń for Writing special characters to xml in c#

If what you're trying to achieve is file like this:<Student><ID>><&\</ID></Student>Then you're doing it wrong. It's not a well-formed XML and no parser is going to...

View Article

Answer by Kirill Polishchuk for Writing special characters to xml in c#

XDocument escapes them itself.<Student><ID>><&"</ID></Student> isn't well-formed XML.Well-formed version, which produces XDocument...

View Article

Writing special characters to xml in c#

I am using LINQ to XML to write an element to an xml document. The problem i am having is that the string i try to write to the xml element has characters such as &, <, > and ".When i write...

View Article
Browsing latest articles
Browse All 4 View Live