insertChildAfter insert html encoded brackets

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 :

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

and

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?