N
nobody
I'm writing data the user enters out to an XML file (using DataSet.WriteXML;
DataSet is a typed DataSet created from an XML Schema). The problem I'm
having is the user can (and needs to) enter characters like &, < and >. Is
there some .NET function (maybe something in System.Xml) that will take a
string and format it for output to an xml file (such as change all &'s to
&, etc.)? I'd hate to have to do String.Replace("&",
"&").Replace(...).Replace(...) all the fields manually, but if that's my
only alternative...
DataSet is a typed DataSet created from an XML Schema). The problem I'm
having is the user can (and needs to) enter characters like &, < and >. Is
there some .NET function (maybe something in System.Xml) that will take a
string and format it for output to an xml file (such as change all &'s to
&, etc.)? I'd hate to have to do String.Replace("&",
"&").Replace(...).Replace(...) all the fields manually, but if that's my
only alternative...