You don't need to first place the value in a variable, just nest your tags:
<@assign request$note <@replace findstr=<@dq> replacestr=<@literal <@dq>> str=<@elementValue object=request$inputDOM element="<@var request$node>.child(1,Weather).child(1,Note)">>> Just remember that you now need encoding=meta when you use the @@request$note variable. Robert _____ From: Bill Downall [mailto:[email protected]] Sent: Monday, February 23, 2009 6:11 PM To: Witango-Talk Subject: Witango-Talk: double-quote character in data Hello, all. I have a process that is reading an xml file and setting up data in a database as a result. Rarely, text data has an embedded double-quote mark in it, and often it has embedded single-quote marks in it. The single-quotes take care of themselves with SQL encoding, but what can I do about the double-quotes? This assignment sets a variable from the XML tree: <@assign request$note <@elementValue object=request$inputDOM element="<@var request$node>.child(1,Weather).child(1,Note)">> Which acts like the equivalent of this: <@assign request$note value='We had an 8" snowfall last night.'> But the variable never gets set, and the rest of the code fails while Witango's parser looks for the closing double-quote. I don't even have the value in a variable so that I can replace the " with <@dq>. Any clever solutions out there? Thanks Bill ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
