473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

write a string

how could i write this into a sting :

strXML = "<?xml version='1.0'?>\n";

thanks


Apr 2 '06 #1
3 1659

"????" <@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.)
Apr 2 '06 #2
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.)

Apr 2 '06 #3
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.)

Apr 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
6
by: yusufjammy | last post by:
Hi i am newbie in visual basic ? How to automatically write in text box without keyboard with visual basic.net .. And what is .net(dotnet) ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.