Updating file in flash

I have a XML file in the following format

<node>
<name=“Team1” value=2>
<name=“Team2” value=3>
<node>

I want to update this file so where name is Team1 value should be 5
What would be the best way to do it?