# Parsing xml data form Flash

**URL:** <https://forum.kirupa.com/t/parsing-xml-data-form-flash/171229>\
**Category:** programming\
**Created:** [December 2, 2005, 9:58pm UTC](https://forum.kirupa.com/t/parsing-xml-data-form-flash/171229 "2005-12-02T21:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mixey/32/1979_2.png) [@mixey](https://forum.kirupa.com/u/mixey)\
**Post date:** [December 2, 2005, 9:58pm UTC](https://forum.kirupa.com/t/parsing-xml-data-form-flash/171229/1 "2005-12-02T21:58:06Z")

</div>

Hi guys!  
I totaly understand how to parse xml in Flash but I’m a newbie in parsing xml data in PHP.  
So basicly my situtation in very simple(from my point of view 🙂 ) I have passed succesfully XML from Flash to PHP (100% guarantee). And it lies in $raw\_xml var.

And here’s what I’m need to do.  
I should e-mail this data in easy readiable view. for examle easyiest table or something like that.

my XML structure:

```auto

<order client_address="My address here A street 13-8/2A" client_mail="email@gmail.com" client_phone="9256878975" client_surname="My surname" client_name="My name">
	 <window window_color="dark_wood" window_quant="1" window_height="200" window_width="150" window_acc="zhaluzi, " />
	 <window window_color="white" window_quant="1" window_height="200" window_width="250" window_acc="" /></order>

```

So how can I reach my missle? And e-mail all this data in a good view? 😃  
with all attributes and so on…  
please, could anybody show me an example.  
Thanks in advance!  
P.S. That’s how I started…but there is nothing… ☹

```php
<?php
$recip= "recip_mail@gmail.com";
$raw_xml = file_get_contents("php://input");
mail($recip, "Contact form", $raw_xml, $headers);
?>

```

This one just sends all the xml object directly to e-mail ☹  
Please help me 😃
