Added XML parsing. Main method is test-ish.