NPDA 0 Light Poster

I'm devloping wp7 app . i have a problem with this cod i want to get values of table from a webservice and show it in msg box the problem is i have two tables in a web service but in foreach only the first value can shown in two times any one can help by knowing the prob???

foreach (XElement nod in resultElements.Elements(@"studentPunishmentsTable"))
            {


                s.penalty = resultElements.Element("studentPunishmentsTable").Element("penalty").Value;
                    MessageBox.Show(s.penalty);


            }