Complete version for the SAX + sequential DOM parsing