Groups | Blog | Home
all groups > dotnet xml > november 2004 >

dotnet xml : XmlTextWriter and QuoteChar ???



SQLScott
11/24/2004 12:03:05 PM
Chris,

I found this in a book and it works great for double quotes:

xtw.QuoteChar = """"c

you could try this for single quotes:

xtw.QuoteChar = "''"c

HTH...

Scott

[quoted text, click to view]
Chris
11/24/2004 7:37:54 PM
Hi,

I'm trying to specify single-quotes to be used in xmlAttributes as follows :

XmlTextWriter writer = new XmlTextWriter (filename, null);
writer.QuoteChar = (char)39;

--> but he still generates double quotes ???

thnx for your help
Chris


AddThis Social Bookmark Button