Revert "tried converting xml parser to something less stupid, I don't know if java has this"

This reverts commit 572b00425d1b2d3d5f3782fa7eed5e0d35c255e2.