Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Sam Gentile
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

Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Rune Christensen 8397
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

Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Christoph
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

Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Marsh, Drew
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

Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Sam Gentile
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

Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Chris Anderson
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

Re: [DOTNET] XmlTextWriter.WriteString and quoted chars

2002-06-13 Thread Shawn Wildermuth
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