Fefactored xml parsing and writing to no longer depend on JDom. Now
only basic Java XML is used.