parse accordion panes from top-level nodes