Now properly extracts all data. Next step: write to xml!