correct to import dir and XML schema (closes #4027) (closes #4031)