If it's XML and you're using VB.NET, then you could use XML literals
and ToString it at the end.


On Wed, Nov 24, 2010 at 11:37 PM, 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*)
>
>

Reply via email to