Converts a list received from the XMLParser to a nice looking one. Watch out with tags consisting out of more words. I chose to limit a tag to one word, so I can use nice symbol lists instead of the "NAME":"LUCAS" option which I dislike.
on makeNiceList uglyList
niceList=[:]
repeat with i=1 to uglyList.count
name=uglyList.getPropAt(i)
if char 1 of name = "!" then delete char 1 of name
if ilk(uglyList[i])=#proplist then
niceList.addProp(symbol(name),makeNiceList(uglyList[i])) -- Recurse.
else
niceList.addProp(symbol(name),uglyList[i])
end if
end repeat
return niceList
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA