Can now read types from XML.