XML dynamic buttons

<data>
<button id=“1” label=“apple” content=“This is an apple”/>
<button id=“2” label=“banana” content=“This is a banana”/>
<button id=“3” label=“orange” content=“This is an orange”/>
<button id=“4” label=“mango” content=“This is a mango”/>
</data>

how could i make a dynamic button with label base from the xml file, using arrays…

the output should be like this

[button]
[button]
[button]
[button]