in reply to Parsing nested XML

That's not truly XML, unless there's an outer start-tag/end-tag around it that you're not showing. If there isn't, and it's just a bunch of elements without a container, you'll have to fake up a container enclosing the remaining file contents.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.