Just commited the ugliest piece of code ever, it parses xml!