# Create dynamic textboxes from XML

**URL:** <https://forum.kirupa.com/t/create-dynamic-textboxes-from-xml/91842>\
**Category:** Uncategorized\
**Created:** [October 9, 2003, 3:51pm UTC](https://forum.kirupa.com/t/create-dynamic-textboxes-from-xml/91842 "2003-10-09T15:51:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkrakatau](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@kkrakatau](https://forum.kirupa.com/u/kkrakatau)\
**Post date:** [October 9, 2003, 3:51pm UTC](https://forum.kirupa.com/t/create-dynamic-textboxes-from-xml/91842/1 "2003-10-09T15:51:15Z")

</div>

I need to dynamically create a number of dynamic textboxes based on the following:

1. each textbox is named after a specific nodename
2. its value is the attribute of that node

Basically I want to loop through an xml object and create a text box for each node, I presume it would work something like this:

//loop through nodes  
for (i=0;i \< recieveXML.firstChild.firstChild.childNodes.length;i++)  
{  
// create dynamic tect box  
//name after nodename  
//assign node attribute as value  
}

does anyone know how to achieve this?

Many thanks in advance!
