Fix the xml interface (parsing and writing typos).