Is it Possible to create Infopath forms from existing XML and XSD

K

Krishna Kal

Hello,

I am new to Infopath forms and have very less information on how forms are
created. From the basic tutorials on web I think if we have a schema we can
create a Infopath and filling the same would create us a XML file.

Now my situation is to the things in oppisite way.

What I am trying to right now is to create Infopath forms from existing XML
with data and XSD's ( which is quite opposite of creating xml after creating
Forms based on schemas and filling up the forms to create XML ).

I am trying to see if there is any way to do this. Could any one help me in
doing this.


let me know if you need more information I can give you an example of xml
and xsd of what I have.

Thanks for all your help
 
E

Ed Thurber

Krishna:

I know you can create have infopath create a schema from an XML file.
There are some caveats.
The XML file does not contain the data type information so all elements
are created as strings.
InfoPath determines repeating nodes from the XML file. if a particular
node is suppose to be repeating, but there is just a single instance of that
node in the XML file, it will not be repeating in the schema, you will need
to fix it after the schema is created.

As for the XSD files, i think you will have to create the views first (just
blank place holders) then go into the XSN file and replace the XSD's with
yours (keep the filenames that InfoPath created).

Saving the XSN as source files will aid in this.

Hope this gets you started.

Ed
 
K

Krishna Kal

ED,

Thank you very much.

My questions should have have been this Initially, Anyways here is the
question,

We are currently in the process of moving from custom winforms to Infopath
forms.

For existing 200 forms we have a schema. Is it possible to create Info Path
*.xsn form programatically if we have schema, if there is any way could you
please let me know.

Thanks,
Gopi
 
A

Anuma(GGK Tech)

Hi,

There is no way to create .xsn file Programatically. If you have any xsn
file already created, then you can move that form to infopath2007. But if you
don't have any xsn file. You need to create new xsn file.
 

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