Javadoc
Eat a section from the input data. The boolean indicates if it is
expected to be the main section. The main section starts with the version
and then some number of attributes, whilst the other sections should
start with a name and then attributes.