Add xml reading logic to the typegen binary.