refactoring XML analyzers: all logic to the superclass