/*REXX program extracts student names from an XML string(s). */ g.= g.1 = ' ' g.2 = ' ' g.3 = ' ' g.4 = ' ' g.5 = ' ' g.6 = ' ' g.7 = ' ' g.8 = ' ' g.9 = ' ' do j=1 while g.j\=='' g.j=space(g.j) parse var g.j 'Name="' studname '"' if studname\=='' then say studname end /*j*/ /*stick a fork in it, we're all done. */