Migrate to RapidXML parser.
Some code improvements.