BTW, "Ok that's it" meant that was the answer. It now works. Thank you.
>From: Sam Gentile <[EMAIL PROTECTED]>
>Reply-To: The DOTNET list will be retired 7/1/02
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [DOTNET] XmlTextWriter.WriteStrin
What about writing "&"? - will be replaced with "&"
-Original Message-
From: Sam Gentile [mailto:[EMAIL PROTECTED]]
Sent: 13. juni 2002 17:06
To: [EMAIL PROTECTED]
Subject: [DOTNET] XmlTextWriter.WriteString and quoted chars
This is a pretty simple question but I want to be able to wri
Sam,
The WriteRaw method on the XmlTextWrite will write out the string as you are
you are passing in, i.e. without making any conversions:
StringWriter sw = new StringWriter( new StringBuilder() );
XmlTextWriter xw = new XmlTextWriter( sw );
xw.Formatting = Formatting.Indented;
xw.WriteStartDocu
Sam Gentile [mailto:[EMAIL PROTECTED]] wrote:
> This is a pretty simple question but I want to be able to
> write out "&" as part of an Xml string. The doc says:
> WriteString does the following
>
> The characters &, <, and > are replaced with &, <, and
> >, respectively. So I get &.
>
> How c
Ok that's it. I'm sorry for the stupid question. I don't know much about
this area.
>From: Chris Anderson <[EMAIL PROTECTED]>
>Reply-To: The DOTNET list will be retired 7/1/02
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [DOTNET] XmlTex
Why not write "&", and let the parser do it's job and convert it to "&"
?
:-)
Merak
> -Original Message-
> From: Sam Gentile [mailto:[EMAIL PROTECTED]]
>
> This is a pretty simple question but I want to be able to
> write out "&" as part of an Xml string. The doc says:
> WriteString does
What do you mean by escape them? Do you need them URLEncoded or
HtmlEncoded?
Thanks,
Shawn Wildermuth
[EMAIL PROTECTED]
> -Original Message-
> From: The DOTNET list will be retired 7/1/02
> [mailto:[EMAIL PROTECTED]] On Behalf Of Sam Gentile
> Sent: Thursday, June 13, 2002 11:06 AM
> T