EDIT: Switched from XmlTextWriter to XElement
I have a Player class, which has following variables:
static string Name;
static int Level;
static int Cash;
And I've saved them into a "Profiles.xml" file with XElement, it now looks like this:
<John>
<level>3</level>
<cash>215</cash>
</John>
<Mike>
<level>7</level>
<cash>780</cash>
</Mike>
Now if I have name, fe. Mike, how do I get the cash and level?
Here you go..