Thanks Barry. Your description of what I need to do makes perfect sense.
I've spent around 2 days try to find a good method for this small problem. I read about E4X but the more I read, the more confused I became.
I also looked at many parsing snippets, and didn't quite understand what was happening. A copy-and-paste may have got me started again, but that method doesn't help me learn anything.