This content has been marked as final. Show 4 replies
Well, I would appreciate it if anyone has the solution for this! It will save me time from going over 1000 phrases and make sure that i have single pairs only!
I don't exactly get your question. But if the issue is xml parsing, you
could have a look at:
In there, you'll find a unicode xml to propList parser.
You can use this movie to parse your xml data, or modify it to fit your
In order to use the list without the Xtra, you can use the .deref() method,
and replace .deref() with .string, to add regular director strings to the
"wgb14" <email@example.com> wrote in message
> Well, I would appreciate it if anyone has the solution for this! It will
> save me time from going over 1000 phrases and make sure that i have single
> pairs only!
> Many thanks
> --tNodeString = "<node as read in from your parsed XML>"
> tList = 
> nLines = tNodeString.line.count
> repeat with l = 1 to nLines
> end repeat
> -- tList now holds individual lines of you original node
--tNodeString = "<node as read in from your parsed XML>"
tList = 
nLines = tNodeString.line.count
repeat with l = 1 to nLines
tText = tNodeString.line[l]
-- if the text is already in the list, skip adding it and
-- move on to the next line of text
if tList.getPos(tText) then next repeat
Although the link that you gave me is very interesting, this is not what i am trying to do! Let me rephrase: The script that Sean suggested allows me to read specific xml nodes and return the results as lists in director. What i am trying to do is to scan this list for dublicate lines and remove only one of the pair. For example, this is what the scipt returns when i parse some of my XML nodes.
[Hm, can i trust your judgement?; Ok, but still I would prefer to choose what I want to see myself!; Ok, but still I would prefer to what I want to see myself!; I would like to ask you another question!]
The above list contains two same lines ( Ok, but still I would...). I want to remove one of the two similar lines and write the resulting list in a cast member. In particular:
[Hm, can i trust your judgement?; Ok, but still I would prefer to choose what I want to see myself!; I would like to ask you another question!]
I hope it is clearer now!