G
Guest
I have an xml file that, for example, contains the following element: -
<data>\x0095 blah1 \x0095 blah2 \x0095 blah3 \x0095 blah4</data>
If I use XmlTextReader.ReadString() to read this data into a string, the \x0095 are interpreted literally.
However, the following code works fine: -
string a = "\x0095 blah1 \x0095 blah2 \x0095 blah3 \x0095 blah4";
Can anyone please explain what I'm doing wrong? The point of all this is that \x0095 is a delimiter and I want to use the Split function to break the string up into an array, like this: -
string[] b = a.Split(new char[] {'\x0095'});
Thanks in advance.
David.
<data>\x0095 blah1 \x0095 blah2 \x0095 blah3 \x0095 blah4</data>
If I use XmlTextReader.ReadString() to read this data into a string, the \x0095 are interpreted literally.
However, the following code works fine: -
string a = "\x0095 blah1 \x0095 blah2 \x0095 blah3 \x0095 blah4";
Can anyone please explain what I'm doing wrong? The point of all this is that \x0095 is a delimiter and I want to use the Split function to break the string up into an array, like this: -
string[] b = a.Split(new char[] {'\x0095'});
Thanks in advance.
David.