<{newChild} name ={newChild1} code="400"/> ; where comapn" name="description">

I want to change the node name in flex tree my code is:
Company:XML =
<Element name ="Element" code="400">
<{newChild} name ={newChild1} code="400"/>
;
where comapny is dataprovide for tree.
I want to update the variable newChild and newChild1 on click event. I have click handler of Button in it m doin: newchild = Textid.text; newchild1 =Textid.text; where Textid is the id of TextInput.But it is not updating the variables ,can someone help me.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.