This content has been marked as final. Show 4 replies
Anyone? I guess what i am asking is not possible!
It's not clear (to me) from your original post what you need to do. You say:
For example: All the variable values(mq1I......mq4I) are contained in
the xml node <level1></level1>. I know how to read this node and return
the result in director, but i am not sure how to brake the result into
individual phrases and fill-in the values of my variables aytomatically.
Something like: 1) Brake the text chunk in phrases, 2) Fill in variable
mq1I with the "Which attractions of the castle, are we going to visit?",
mq2I with "Why can't I create my own routes for the castle?" and so on!
It seems you are reading an XML node and wanting to break it up into
individual lines and then assign each line to a named variable.
Perhaps something like the following will help:
--tNodeString = "<node as read in from your parsed XML>"
tList = 
nLines = tNodeString.line.count
repeat with l = 1 to nLines
-- tList now holds individual lines of you original node
-- something you seemed to be doing with 'PD0 = [mq1I,mq2I,mq3I,mq4I]'
Igonre these posts this question has been answered!
Ignore these post this question has been answered!