I put it in a separate file with tag place holders, then in code just replace the tags with values. Keeping long texts in code is just plain ugly.
Regards Arjang On 24 November 2010 23:37, Anthony <[email protected]> wrote: > How do people normally handle a long text string that you create in code > > This is what i normally do but was hoping this is an obsolete technique? I > hate having to esacpe the characters eg the double quotes within the quotes! > > POAck.AppendLine("<?xml version=""1.0"" > encoding=""UTF-8""?>") > > POAck.AppendLine("<!DOCTYPE cXML SYSTEM > ""http://xml.cXML.org/schemas/cXML/1.2.009/cXML.dtd"">") > > POAck.AppendLine("<cXML payloadID=""" & Payloadid & """ > timestamp=""" & TimeStamp & """ xml:lang=""en-US"">") > > POAck.AppendLine("<Response>") > > POAck.AppendLine("<Status code=""200"" text=""Successful > received purchase order..thank you""/>") > > POAck.AppendLine("</Response>") > > POAck.AppendLine("</cXML>") > > regards > > Anthony (*12QWERNB*) > >
