XML parse
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.