rapidxml stuff from eric