rapidxml used,full optimization