Xml Attributes

Ive decided to learn PHP, bout time, but for the purpose of working with the XML scripts I use in my flash websites, basically im creating methods of editing XML files which are used by flash websites to display content and information.
Using the ACE tutorials on kirupa ive so far managed to read the data out of my XML file which is great, however what would be the code to read and display an attribute of a tag on the screen.

for example…
<gig date=“11/07/05”>The Welsh Club</gig>
(so far i have ‘The Welsh Club’ echo’d on the screen but i want the attribute as well)

phew. :cons: