omar fathallah:When ever i deploy the infopath form to the sharepoint document library
Deploy from where? how? XML data form or XSN form template?
Infopath XML data forms are saved or uploaded based on Infopath XSN form template and an Infopath XSN form template cannot be published to a document library but only to a sharepoint form library. And for creating Infopath XML data forms in a sharepoint document library an Infopath XSN form template should have been published as as a content type from which one creates Infopath XML data forms (in a sharepoint document library). If you have not created an Infopath form template and published it as a content type into a sharepoint form template to be used in a sharepoint document library, I do not see how you can "deploy" (whatever you mean under it?) Infopath form (again, what do you mean under it?) to a sharepoint document library
BTW, if you work with Infopath forms, what are your reasons that you are using a sharepoint document library but not a sharepoint form library?