Xml attribute retrieval

im lost here, i would like to ask you guys if you have any idea on how will i be able to retrive an attribute in my xml file everytime i would press a button. example:

<label name=“hello” id=“1”/>

---- i want to just display the attribute “id” in a dynamic textbox everytime i press a button in my flash movie.

thanks for the tips in advance.