http://qs321.pair.com?node_id=1097083


in reply to Help with Parsing XML output

I do not have enough experience with dealing with XML to help you on the mainn subject, but clearly an else clause does not make sense in a foreach statement, since a foreach statement is supposed to scan all the elements of the source list. So either you don't understand foreach, or it is not what you need to start with.