variable in string

Hi,

I have trouble and I will appreciate help..

I´d like to create long! string which will be send as XML. Honestly as beginer I don´t know how to create that string. Somewhere I read that long Strings are not reccomended so I tried that bellow.. but I don´t know how to implement variable "SensorValue"
Any advice?

Richard

char *SendXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
    "<DATA>\r\n"
      "<SENSOR>SensorName</SENSOR>\r\n"
      "<VALUE>" + SensorValue + "</VALUE>\r\n"
      ...
      ...
      ...
    "</DATA>\r\n";

I´d like to create long! string

Why?

Any advice?

sprintf().

AWOL:
Why?

there will be up to 30 values so it takes few lines..

PaulS:
sprintf().

I know that could be way but i´m afraid it will be litle bit unclear.. Or? Can you give me few lines of help please?

there will be up to 30 values so it takes few lines..

So? Whatever you are sending the data to can't tell if you used 1 print() call or 100.

sprintf() is a VERY easy function to use. Mr. Google can help you, with just a little wheedling.