Xml attributes - need help

Ok, so I am new but this seems so simple its driving me crazy. I am trying to make a simple gmail contact grabber. I can get the xml file, but I cant parse, probably becuase I dont really know how to parse element attributes. Please help.

I have an xml feed coming in:


<?xml version="1.0" encoding="UTF-8"?>
 <contacts>
  <contact name="2065558968" email="[EMAIL="2065558968@mobile.mycingular.com"]2065558968@mobile.mycingular.com[/EMAIL]" /> 
 </contacts>

via

$xml = file_get_contents($request);

How do I parse this into html?