Modify XML data structure - offline

Z

Zoltan Fedor

Hello,

I need to add a huge amount of XML variables to my InfoPath form. I search
for an effective way to do it, somehow export the xml structure, modify in a
text editor and import it back.
I extracted the xsn file, modified the .xml file I found , and made a new
xsn file, but that was not successful. When I opened the new xsn file, the
old xml data structure was shown.
What did I wrong? What is the suggested way to do that?

Thanks a lot!
 
F

Franck Dauché

Hi,

I am confused here, to modify the structure, you should modify the schema,
not the xml. You are mentioning modifying the xml file; which one template
or sample?

Tell us more..

Regards,

Franck Dauché
 
Z

Zoltan Fedor

Hi Franck,
Thanks for your reply.
Yes, I was wrong, I need to modify the schema, not the xml file...
Now I extracted the xsn file, modified the myschema.xsd schema file (added
some new xml element), and created a new xsn file.
When opened this new xsn file in design mode, I can see the manually added
xml variables at the data source section,
BUT
when I binding some of these xml variables to my control, a see the "control
bound to missing field or group" message. So I can not use this xml element...
So I am missing something when creating xml variables manually.
Do you know what is wrong?
Thanks a lot,
 
F

Franck Dauché

Hi,

If you modified your schema outside InfoPath (if you added a node to your
schema for example), you need to add that node manually in your associated
xml files to get rid of the issue that you are mentioning in your post.

Hope that it helps.

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