Hi Guys,
I am currently facing a problem with XmlTextReader. I use XmlTextReader.Read() to read an xml document. Following is a portion of the document:

<title> XML &amp; XHTML </title>

What I would like to do is to copy the whole text without any modification on it and assign it to a string, xmlDoc.
Therefore the expected result is:
xmlDoc = " XML &amp; XHTML "

However, XmlTextReader.Read() automatically converts that text into " XML & XHTML ". So the result that I get is:
xmlDoc = " XML & XHTML "

May I know, is there any solution to solve this problem? I have been thinking of the char by char checking. After detecting the char "&" then assign "&amp;" to the string. But this way is not practical at all because other than "&", we still have many special character like ©, <, >, etc

I would appreciate any reply, thank you