query and change xml (infopath) in c#/vb without infopath

L

Lu Prodesso

URGENT....Please help...
Hi
I want to create c# or vb code to read , change and write a XML (infopath)
file from pure code(windows application or class). So without infopath. The
resulting XML must remain usable in infopath. So a double click on the
resulting XML must open infopath.
Does anyone have an example like this.
 
S

S.Y.M. Wong-A-Ton

I don't have any code samples for this, but you could use the fact that
InfoPath forms are recognized by a processing instruction. Fill out a form,
save it to disk, open it in Notepad, and at the beginning of the file you
will see a node that starts with <?mso-infoPathSolution ...?>. If you add
this to your XML file and refer to the correct InfoPath template (href within
the processing instruction) that should be used with the XML file, you should
be good to go.
 
J

John C. Banks

Lu said:
URGENT....Please help...
Hi
I want to create c# or vb code to read , change and write a XML (infopath)
file from pure code(windows application or class). So without infopath. The
resulting XML must remain usable in infopath. So a double click on the
resulting XML must open infopath.
Does anyone have an example like this.
I've heard of this type of request revolving around the BizTalk 2004
solutions. Taking data, modifying it, building a new infopath form etc.
You might want to try and look at the development center there for
code examples of doing this. Maybe can be adopted.
 

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