# Xml attributes - need help

**URL:** <https://forum.kirupa.com/t/xml-attributes-need-help/253383>\
**Category:** Uncategorized\
**Created:** [February 29, 2008, 4:39pm UTC](https://forum.kirupa.com/t/xml-attributes-need-help/253383 "2008-02-29T16:39:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petermdenton](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@petermdenton](https://forum.kirupa.com/u/petermdenton)\
**Post date:** [February 29, 2008, 4:39pm UTC](https://forum.kirupa.com/t/xml-attributes-need-help/253383/1 "2008-02-29T16:39:39Z")

</div>

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:

```auto

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

```

via

```auto
$xml = file_get_contents($request);

```

How do I parse this into html?
