in reply to Re^3: XML::Twig Stream root children
in thread XML::Twig Stream root children

You can even do xml_split -l 1

Replies are listed 'Best First'.
Re^5: XML::Twig Stream root children
by Herkum (Parson) on Oct 05, 2009 at 14:59 UTC

    using the 'level(1)' as the Anonymous Monk suggested does the trick. The question I have now, is where is this documented? I only saw one it mentioned once in the XML::Twig POD and I found an example in the unit tests.

    Update: I take this back, I did find in the documentation. Though I had never noticed it before. This project has been a good learning experience.