Adds xml parsing, untested.