Try to follow the file format description from QE website. Allow some value to be attributes of an XML element, like for PP_HEADER.
Tests are missing, will come later.
The way attributes are read is really ugly. The stream is rewind for each attribute… I didn't found any better way, without allocating memory to put part of the file into. I guess it will be fine because no so many attributes are poked. Well hopefully.