Hi list... I have a handler that trudges through XML at a particular node and looks for a parameter called command="someLingoStuff". If that param is there in the node, the handler takes what's in the quotes and puts it in a do statement:
do(someLingoStuff) It's no problem for something like command="gTools.mRenderReport()". However, I'd like to pass in something like this: command="baMsgBox(\"Complete this Tutorial before starting the next Tutorial.\", \"Advisory\", \"OK\", \"Info\", 1)" Well, escaping the quotes chokes the XML. Single quotes don't work...that's javascript, and QUOTE would still need the quotes on the pieces to concatenate. Anyone have an idea of how to pass quotes that are within quotes? Thanks, Michael M. ------------------------------------ Below is the whole kit and caboodle: on mLookForCommand() -- look for a "command" XML attribute, if there, do it... if gXML.child[1].child[pCurrent.pModule].child.count > 0 then if gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].child.cou nt > 0 then if not voidP(gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].chi ld[pCurrent.pTopic].attributeValue["command"]) then theCommand = gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].child[pCu rrent.pTopic].attributeValue["command"] do(theCommand) end if else if not voidP(gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].att ributeValue["command"]) then theCommand = gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].attribute Value["command"] do(theCommand) end if end if else if not voidP(gXML.child[1].child[pCurrent.pModule].attributeValue["command"]) then theCommand = gXML.child[1].child[pCurrent.pModule].attributeValue["command"] do(theCommand) end if end if end [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]