Ok i found a solution.
For a reason i don't know, "text data type" are mapped with this f**** pattern "*\S.*"when you are using Infopath for customize a DIP.
So the solution is :
[Create your file]
- customize your DIP like you do normaly
- Save it as as .xns file (ie MyDIP.xsn)
[Extract Files and delete pattern section]
- Rename the .xsn file in .cab (MyDIP.cab)
- Extract your .cab file
- Look for the file called : typeSchema.xsd
- In this file, delete the line ""
- Save your file
[ Repack your file using makecab.exe (C:\Windows\System32\makecab.exe)]
- Create a txt file called directives.txt (or any suitable you like).
Copy this code in the file:
;************************************************************
; MSDN Sample Source Code MakeCAB Directive file example
;************************************************************
.OPTION EXPLICIT
;*****************************************************************
; change the value of the caninet name for example myInfoPath.xsn
;******************************************************************
.Set CabinetNameTemplate=AfterRePackaging.XSN
;*************************************************************************************************************
; change the value of the Disk Directory Template value to the directory you want to store the xsn file into,,
;*************************************************************************************************************
.set DiskDirectoryTemplate="D:\Workarea\InfoPath Work"
.Set Cabinet=on
.Set Compress=on
;*******************************************************
; Just List All the files to be added in the xsn file
;*******************************************************
"D:\Workarea\InfoPath Work\Extracted Files\manifest.xsf"
"D:\Workarea\InfoPath Work\Extracted Files\myschema.xsd"
"D:\Workarea\InfoPath Work\Extracted Files\sampledata.xml"
"D:\Workarea\InfoPath Work\Extracted Files\template.xml"
"D:\Workarea\InfoPath Work\Extracted Files\upgrade.xsl"
"D:\Workarea\InfoPath Work\Extracted Files\view1.xsl"
;*********************
; End of the File
;*********************
Save your file. And open the command prompt (CMD).
Now, you need to type the following command:
MakeCab /f directives.txt
*** be sure that you are in the same directory or give the full path name ***
Congratulations now you have your XSN file go ahead and test it,,,
- check this topic for more information about pack or unpack xsn files !
http://blogs.msdn.com/b/wael/archive/2007/04/29/infopath-how-to-modify-the-xsn-file-and-the-inside-xml.aspx)