Hi,
I am creating Infopath form instances programmatically from a published form template in sharepoint form library and populating some fields inside the form with data. The data will contain white spaces and special character. I have used the following link for reference: http://enterprise-solutions.swits.net/infopath2007/programmatically-create-infopath-form-console-app.htm
In XmlTextWriter.WriteValue() method, if I pass a string of length more than 6, then generated xml is giving error saying “Character ' ', hexadecimal value 0x0 is illegal in XML documents”.
If the value is limited to 6 character then its generating xml without any error, though its contain white spaces…
Can anyone guide me to come out from this issue?
Thanx