InfoPath template.xml schema from template.xsn file

B

bratt

Is there a way to obtain the XML template (template.xml) from the
template.xsn file from a vb.net program (not using InfoPath)?
I am assuming I would need to reference
Microsoft.Office.Interop.InfoPath.SemiTrust?

I am trying to obtain the main XML schema from a SharePoint form
library so I can preload the XML with data and send it into work flows.
 
B

bratt

I've discovered the template.xsn is a cabinet file containing the
separate project files including the template.xml
 
F

Franck Dauché

Hi Bratt,

You don't need semitrust to open an xml file (including template.xml)
outside InfoPath. I think that what you want to do is open your xsn. Save a
blank form (that you can call template.xml). Store this file with your xsn.
When you need to process a pre-processed form, just get your template.xml,
open it with System.xml, manipulate your document and throw it in the loop.

As long as you don't write invalid data and as long as you don't mess up
with the processing instruction on top of your xml file, you can open your
xml with the associated xsn.

Regards,

Franck Dauché
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top