. "I can almost get it to work, I just can not figure out how to use switch or if statements to say for example IF the node is equal to 5, make a new tag and set the name attribute to whatever the value of $arr[5][0]." . . . .