• 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
XML parse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML parse


  • Subject: XML parse
  • From: Marcus Rodrigues <email@hidden>
  • Date: Tue, 16 Sep 2003 18:16:01 -0300

Only people who have the XML Tools Scripting Adiction can test this:


property theXMLSource : "
<trabalho>
<numero>00001</numero>
<numero>00002</numero>
<numero>00003</numero>
<numero>00004</numero>
<status>pronto</status>
</trabalho>"

set theXML to parse XML theXMLSource
set aLista to {}
repeat with subItem in XML contents of theXML

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
set osItems to the items of aLista
display dialog "seu trabalho nB: " & osItems & " estC! :P"
end repeat



Why does it repeat the last item of the list???? (0004)

Thx for any help =-D



o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
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.

  • Follow-Ups:
    • Re: XML parse
      • From: Nigel Smith <email@hidden>
  • Prev by Date: Re: Click and Drag using UI scripting?
  • Next by Date: Re: Click and Drag using UI scripting?
  • Previous by thread: Re: Click and Drag using UI scripting?
  • Next by thread: Re: XML parse
  • Index(es):
    • Date
    • Thread