Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

storing a string which includes quotations 1

Status
Not open for further replies.

chineerat

Technical User
Oct 12, 2003
42
0
0
TT
hello there
i am trying to store a string <?xml version="1.0"?>

i've tried

string word;

word = "<?xml version="1.0"?>";

but this didn't work, i guess becuse of quotations conflicts.
are their any suggestions????
thanks in advance...
 
Escape the ", like so
Code:
word = "<?xml version=\"1.0\"?>";

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top