I'm trying to create a web application tat automatically creates a infopath form when criteria is met. I've copied the template into my app_data folder and use that as a starter point. I then create a new form based on the template. I'm unable to open the new form in infopath. At first, it was unable to find the manifest. I copied the top lines from an existing form into my template and was able to work through this (although, this is likely just a band aid). The next problem I saw was the controls were all messed up. If my template had a blank field (<my:Status></my:Status>) the new file would actually put a line break between the start and end of the field.
<my:Status>
</my:Status>
If I removed all the line breaks (and subsequent spaces/tabs) the controls work. Are there any tutorials I can refer to to help me accomplish the task?