XML report format 1 only had error "lines" that we promoted to "items" when adding to GUI. XML report format 2 contains error "items" so change the code to read items and do the promotion directly when reading and parsing the data.
A base class is needed for e.g. some common routines that can be shared between the formats.
Ticket #2521 (GUI: Add XML format 2 support)