G
Guest
I'm using XmlTextWriter to write XML to a string and XmlDocument to read it
back.
Every thing works OK except if my data contains a < or >. If this is the
case they get saved as < > repectively. When I come to read them back they
appear as the text < > rather than the < and >. What do I have to do to
prevent this happening.
Similarly if I try and save data <abc> I get an exception saying potentially
dangerous data detected
Any ideas how I should handle these cases ? this there some setting that I
need to make when saving the data.
back.
Every thing works OK except if my data contains a < or >. If this is the
case they get saved as < > repectively. When I come to read them back they
appear as the text < > rather than the < and >. What do I have to do to
prevent this happening.
Similarly if I try and save data <abc> I get an exception saying potentially
dangerous data detected
Any ideas how I should handle these cases ? this there some setting that I
need to make when saving the data.