Fix the xml interface (better parser and typos).