Parse file element correctly.