Saving an XML that has invalid characters

Posted by BDotA on Stack Overflow See other posts from Stack Overflow or by BDotA
Published on 2011-01-07T21:45:16Z Indexed on 2011/01/07 21:54 UTC
Read the original article Hit count: 242

Filed under:
|
|

there are code snippets that strip the invalid characters inside a string before we save it as an XML ... but I have one more problem: Let's say my user wants to have a column name like "[MyColumnOne] ...so now I do not want to strip these "[","] well because these are the ones that user has defined and wants to see them so if I use some codes that are stripping the invalid characters they are also removing "[" and "[" but in this case I still need them to be saved... what can I do?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml