I have some data that I need to have stripped of all excess XML data. When I first volunteered to do this, I thought to myself, its just excess text, how hard can that be?
oh how little did I know what RegEx is. Im beating my head against a wall, and would just like someone to help get me going.
I followed along in this thread. But, Ive had no such luck in figuring it out on my own without a little bit of coaxing.
So, heres my question, how do I strip out this excess data so that all Im left with is the coachs name (it needs to be a variable for a combo box). So, that the coach of the team can make changes to his roster below his name. Or since the coachs name always stays the same, should I use RegEx.IsMatch() instead of trying to strip the excess data since it needs to be saved as XML anyway and sent back as a plain TXT file? So, many questions, thats why Im coming to the gurus...!
and heres a sample of what my XML looks like....

I followed along in this thread. But, Ive had no such luck in figuring it out on my own without a little bit of coaxing.
So, heres my question, how do I strip out this excess data so that all Im left with is the coachs name (it needs to be a variable for a combo box). So, that the coach of the team can make changes to his roster below his name. Or since the coachs name always stays the same, should I use RegEx.IsMatch() instead of trying to strip the excess data since it needs to be saved as XML anyway and sent back as a plain TXT file? So, many questions, thats why Im coming to the gurus...!
and heres a sample of what my XML looks like....
Code:
- <team name="Sacramento" coach="Randy" teamid="1" picture="madison.gif" abbreviation="SAC" email="">
- <roster>
<player name="Jose Fuentes" pos="QB1" />
<player name="JoJo Jones" pos="RB1" />
<player name="Johnnie Vee" pos="RB2" />
<player name="Tom Waddle" pos="WR1" />
<player name="Sherman Deary" pos="WR2" />
<player name="Dan Graham" pos="TE1" />
<player name="John Hall" pos="K" />
<player name="CHA" pos="DEF" />
<player name="Wheeler Chandells" />
<player name="Carlin Patton" />
<player name="Sidney Iverson" />
<player name="Nicky Santoro" />
</roster>
</team>