I need to put some extra html formatting before the XML before I print it, though, and the formatting depends on the element, so I do need to do the inner loop to get each element. So, I guess I'm still kind of confused here--if paste puts in 2 elements, the actual element and its text, how do you print out the element, and not that secondary text element? Sorry if I sound like a broken record; I still don't understand. Jezzica85