>>When building an XML file in code (using XmlDocument) how do I specify that some elements should be able to contain any characters? (even ampersand sign &)?
>>
>>Thank you.
>
>If you are building the XML file manually, I think you will need to replace the ampersand with &. Here is a page that shows the XML special characters:
>
>
http://www.devx.com/tips/Tip/14068Thank you for the reply, suggestion, and the link.
You probably were saying to replace & with & + "amp" + ";"? This is what I am trying to avoid. Let me give you an example.
User enters in a multi-line text box something like "Paul & Jane". My ASP.NET application adds the .value of this text box to an XML and the XML is then sent to VFP database. I believe that somewhere along the way, the "&" in the text is converted to "&" + "amp" + ";". Then the user later looks at the text (in the VFP application) and sees "Paul "&" + "amp" + ";" Jane". It has to say only & just like it was originally typed. So, I believe that I need to add something to the XML file to make ASP.NET allow any characters. Does it make sense?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham