First off, it's really helpful if you provide output that correlates to your input. Otherwise, I can't see if there's anything wrong. Remember - I have absolutely no information save for what you give me. If that information comes from two sources, I can't make heads or tails of it.
Second - I would try the second option with more than one element in the array and see what the XML looks like. I suspect that it will be doing what you want it to do.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
| [reply] |