Hi Tom,
Try this:
<cfscript>
XMLPacket = "<?xml version=""1.0""?>";
XMLPacket = XMLPacket & cfvariable_1;
XMLPacket = XMLPacket & cfvariable_2;
XMLPacket = XMLPacket & cfvariable_3;
etc.
</cfscript>
You can also lump them all into one line, by doing this:
XMLPacket = "<?xml version=""1.0""?>" & cfvariable1 & cfvariable2...
;
Doing it the first way you can use if(IsDefined()) to check for the presence
of the variables, however, there is a little more overhead due to CF writing
a new string to memory on each line (not much, though).
Hope this helps,
Matt
-----Original Message-----
From: Schreck, Tom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:47 AM
To: [EMAIL PROTECTED]
Subject: [cf-xml] xml merge
I'm needing to take multiple cf variables containing xml chunks and merge
them into 1 xml document. I'd appreciate any insight into how this can be
accomplished.
Thanks - Tom
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml