# XML in as3 - how to delete a tags

**URL:** <https://forum.kirupa.com/t/xml-in-as3-how-to-delete-a-tags/237720>\
**Category:** flash\
**Created:** [September 3, 2007, 5:00am UTC](https://forum.kirupa.com/t/xml-in-as3-how-to-delete-a-tags/237720 "2007-09-03T05:00:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [September 3, 2007, 5:00am UTC](https://forum.kirupa.com/t/xml-in-as3-how-to-delete-a-tags/237720/1 "2007-09-03T05:00:12Z")

</div>

Hi,

I have this xml data loaded into flash:  
\<Test\>  
\<ID\>1\</ID\>  
\<Title\> \</Title\>  
\<Questions\>  
\<Question\>how& \<Question\>  
\<Question\> how& \<Question\>  
\</Questions\>  
\<Answers\>  
\<Answer\>.\</Answer\>  
\</Answers\>  
\</Test\>

In flash how can I delete any one of the \<Question\> tags inside of the \<Questions\> tag? I need not only what is inside of the tag to be deleted but the \<Question\> tag itself along with the data is was holding. Basically the new xml data would look like this:

```
&lt;Test&gt;
  &lt;ID&gt;1&lt;/ID&gt;
  &lt;Title&gt; &lt;/Title&gt;
  &lt;Questions&gt;
    &lt;Question&gt;how& &lt;Question&gt;
  &lt;/Questions&gt;
  &lt;Answers&gt;
    &lt;Answer&gt;.&lt;/Answer&gt;
  &lt;/Answers&gt;
&lt;/Test&gt;

```

Thanks,

waffe
