Daniel,
Did you try something like :
==
private void button1_Click(object sender, System.EventArgs e)
{
string orig = "\u0002";
XmlTextWriter w = new XmlTextWriter("c:\\test.xml",
new System.Text.UTF8Encoding(false, true));
w.WriteElementString("elementX", orig);
w.Close();
XmlTextReader r = new XmlTextReader("c:\\test.xml");
string str2 = r.ReadElementString("elementX");
if (str2 == orig)
MessageBox.Show("equal");
else
MessageBox.Show("not equal");
r.Close();
}
==
The above code, when run, displays : "equal".
Is this what you are trying to do ?
Stephen
"Daniel Rimmelzwaan" <da****************@nospam.tectura.com> wrote in
message news:uN**************@TK2MSFTNGP14.phx.gbl...
That's what we did, but when we create the element, we get an error saying
something about a special character not being allowed. We've since just
gotten rid of the characters (it was actually (char)02 and (char03) as
start and end delimiters of a status message from an external app), but
I'd still like to know how this works.