you are on the right track... you can do as you say... just add the @ as
below.. that keeps characters as like... and you can use the
Environment.NewLine for \n... that makes sure you get a newline per system
settings..
string strXML = @"<?xml version='1.0'?>" + Environment.NewLine;
VJ
"????" <@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
what i want is to insert into value that i declare the string = ""<?xml
version='1.0'?>\n"
and after a while to do somthing like : string + "/<blaba>" and so ...
so i declare on string value strXML
and try to do
strXML = "<?xml version='1.0'?>\n";
and after
srtXML = strXML + "<dddd>";
ans so..
thanks
"Daniel O'Connell [C# MVP]" wrote:
"????" <@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com... > how could i write this into a sting :
>
> strXML = "<?xml version='1.0'?>\n";
>
That won't do the job? What do you mean exactly by write into a string?
If
you mean insert it in the middle of a string you can use String.Insert(or
a
string builder.)