XML parser aangepast; main test, nullpointers fix