Re: XML parse
Re: XML parse
- Subject: Re: XML parse
- From: Nigel Smith <email@hidden>
- Date: Wed, 17 Sep 2003 10:53:29 +0100
On 16/9/03 22:16, "Marcus Rodrigues" <email@hidden> wrote:
>
if XML tag of subItem is "numero" then
>
set theText to the XML contents of subItem as Unicode text
>
end if
>
set aLista to aLista & theText
>
Why does it repeat the last item of the list???? (0004)
Because, although the "<status>pronto</status>" tag doesn't match to your
"if" clause and so theText is still set to "00004" from the last time
through, you append thetext to aLista *outside* the "if" block, so that
still happens.
Just put "set aLista..." before the "end if" instead of after it.
Nigel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >XML parse (From: Marcus Rodrigues <email@hidden>) |