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

Reply via email to