Forum Discussion
RokuMarkn
13 years agoVisitor
This seems to be a problem with the debugger but not with the language. The failure happens when you run the foreach statement in the debugger, but it seems to work ok when compiled into a channel. This works for me:
This prints
--Mark
string ="<list><c>name1</c><c>name2</c><c>name3</c></list>"
xml = createobject("roXMLElement")
if not xml.Parse(string) then stop
categoryItems = xml.getChildElements()
for each categoryItem in categoryItems
print categoryItem.GetName()
end for
This prints
c
c
c
--Mark