Reading text and XML modes