# insertChildAfter insert html encoded brackets

**URL:** <https://forum.kirupa.com/t/insertchildafter-insert-html-encoded-brackets/290367>\
**Category:** flash\
**Created:** [June 13, 2009, 2:20pm UTC](https://forum.kirupa.com/t/insertchildafter-insert-html-encoded-brackets/290367 "2009-06-13T14:20:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [June 13, 2009, 2:20pm UTC](https://forum.kirupa.com/t/insertchildafter-insert-html-encoded-brackets/290367/1 "2009-06-13T14:20:32Z")

</div>

Hey all,  
Been trying to figure this out for a few but no luck. I want to just make a new node and add it to an XML structure.

So I’ve tried things like :

```auto
var xmlNode:XMLNode = new XMLNode(1,newNodeName.text);
var xmlObj:Object = xmlNode as Object;
xml.insertChildAfter(xml.children()[0],xmlObj);

```

and

```auto
xml.insertChildAfter(xml.children()[0],Object("<"+tf.text+"/>"));

```

and a few others, and they always return the same thing : \<newNode/\>

any idea’s on what this is happening?
