Try this. Not sure why you need the second doc.
foreach (XElement xe in doc.Descendants("Profile"))
{
MessageBox.Show(xe.Element("username").Value);
}
Try this. Not sure why you need the second doc.
foreach (XElement xe in doc.Descendants("Profile"))
{
MessageBox.Show(xe.Element("username").Value);
}