Added code that performs simple parsing and load of the whole document.