• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML parse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Hex > Text
  • Next by Date: Re: Hex > Text
  • Previous by thread: XML parse
  • Next by thread: Hex > Text
  • Index(es):
    • Date
    • Thread