Sorry it again converts it to just double quotes. What I am trying to say is
that in my dev environment double quote is stored as "ampersand double quote
semicolon". But in other environments its stored as double quote itself.
> The first double quote that I have mentioned in my message is """.
>
[quoted text clipped - 24 lines]
> > >
> > > Thanks.
> Sorry it again converts it to just double quotes.
The term "double quote" is a bit misleading. A quotation mark is ", so a
double quote would be "". The ' character is apostrophe, so " would
rather be "double apostrophe" than "double quote".
(Strictly speaking, " is the character for the inch unit, and ' is the
character for feet unit, but they are used instead of the quotation mark
and apostrophe, as they are not available on a standard keyboard.)
> What I am trying to say is
>
> that in my dev environment double quote is stored as "ampersand double quote
> semicolon". But in other environments its stored as double quote itself.
Neither is correct in an xml document. A quotation mark in a value
should be encoded as " ( & q u o t ; ).
If quotation marks are improperly encoded or not encoded at all, the xml
is invalid, and it's likely that it's impossible to parse it using
normal methods.

Signature
Göran Andersson
_____
http://www.guffa.com
msdnuser - 21 Aug 2007 22:58 GMT
Yes in my dev environment quotation mark is properly encoded while saving to
xml file. But in other environments it is not so. Please explain me if this
encoding will happen automatically when the text in html textarea is stored
in an xml file because I could not understand why this is not happening in
all the environments uniformly.
Thanks.
> > Sorry it again converts it to just double quotes.
>
[quoted text clipped - 17 lines]
> is invalid, and it's likely that it's impossible to parse it using
> normal methods.
Göran Andersson - 02 Sep 2007 14:33 GMT
> Yes in my dev environment quotation mark is properly encoded while saving to
> xml file. But in other environments it is not so. Please explain me if this
> encoding will happen automatically when the text in html textarea is stored
> in an xml file because I could not understand why this is not happening in
> all the environments uniformly.
That depends entirely on how you create the xml file. There is nothing
magical about an xml file, it's just a text file that has a specific format.
If you use some tool for creating the xml, like the XmlDocument object,
it will encode the text that you put in the elements. If you create the
xml by just concatenating strings, there is of course no encoding going
on unless you do it yourself.

Signature
Göran Andersson
_____
http://www.guffa.com