# How to write xml

**URL:** <https://forum.kirupa.com/t/how-to-write-xml/322346>\
**Category:** flash\
**Created:** [May 18, 2011, 2:47pm UTC](https://forum.kirupa.com/t/how-to-write-xml/322346 "2011-05-18T14:47:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandarya](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sandarya](https://forum.kirupa.com/u/sandarya)\
**Post date:** [May 18, 2011, 2:47pm UTC](https://forum.kirupa.com/t/how-to-write-xml/322346/1 "2011-05-18T14:47:58Z")

</div>

Hi, folks i need bit help

```auto
function onComplete(event:Event):void {
       trace("Result is "+event.target.data);

```

The above is the code where i am stuck i, after sending some data to web service i get response from there in which UID and status is there

\<response\>\<uid\>7281792\</uid\>\<status\>success\</status\>\</response\>

but its in +event.target.data i can see in out put console but i want to convert it into local Xml file as it is please help an example will be lot appreciated.

basically i want retrive the uid value to prase i must creat xml and get access to it.

Thanks in advance :ne:
