Really rough custom code for parsing some specific xml files.