# Inserting a block of XML into existing XML

**URL:** <https://forum.kirupa.com/t/inserting-a-block-of-xml-into-existing-xml/305534>\
**Category:** flash\
**Created:** [February 26, 2010, 6:55pm UTC](https://forum.kirupa.com/t/inserting-a-block-of-xml-into-existing-xml/305534 "2010-02-26T18:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [February 26, 2010, 6:55pm UTC](https://forum.kirupa.com/t/inserting-a-block-of-xml-into-existing-xml/305534/1 "2010-02-26T18:55:00Z")

</div>

I have a XML “writer” that will create (using AIR) a file on my desktop with a block of XML data. This tool will also load a XML file. What I need help with is getting it to add subsequent blocks of XML data before the closing tag. Any help would be great.

```auto

<open>
     <block1>
     </block1>
     <block2>
     </block2>
     /*This is where I would like to insert another block of XML*/
</open>

```
