How to get Microsoft Infopath XML generated file to work with the Web?
-
Hi Experts, Has anyone tried getting Infopath generated XML file to work on the web and vice versa? Someone mention using XForms and I am trying to learn how to work with that. Also, how can this be implemented using php? Thanks in advance.
I'll do a refresher on Infopath. It was interconnected with something uniquely Microsoft, which was why I had to reject it. Can't remember more off-hand. :-( I did a project in XForms. It works, but only in certain browsers. I used a FF add-in, which worked fine. I also tried XSmiles...less stable, but may be better now. It's worth the effort to understand XForms!!! It's GORGEOUS in it's simplicity. Data and presentation are separate. You're able to do more with XForms than you ever could with XHTML & HTML (multiple submssions and types of submissions, locally or on a server and so on). Here's a header code sample from my project. You'll see the submission types and the differences I talked about:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xmml="http://www.myDataModel/xmml"> <head> <title>Shopping List</title> <xf:model id="default" > <xf:instance> <xmml:data> <xmml:storeName></xmml:storeName> <xmml:productChoice></xmml:productChoice> </xmml:data> </xf:instance> <xf:submission id="clientList" action="ClientList.xml" method="put" /> <xf:submission id="tempList" action="file:///c:/tmp/ClientList.xml" method="put" replace="none"/> <xf:submission id="reloadList" action="file:///c:/tmp/ClientList.xml" method="get" replace="instance"/> </xf:model>
I've not tried XForms with php and my use is server context only. I only know that php wraps around HTML. HTML is wrapped around XForms. XForms is still wild west territory. You'll learn as you go. It's worth it though. w3schools.com and their xforms tutorial is a good place to start. I ended up learning more advanced things from xsmiles and w3.org. -
I'll do a refresher on Infopath. It was interconnected with something uniquely Microsoft, which was why I had to reject it. Can't remember more off-hand. :-( I did a project in XForms. It works, but only in certain browsers. I used a FF add-in, which worked fine. I also tried XSmiles...less stable, but may be better now. It's worth the effort to understand XForms!!! It's GORGEOUS in it's simplicity. Data and presentation are separate. You're able to do more with XForms than you ever could with XHTML & HTML (multiple submssions and types of submissions, locally or on a server and so on). Here's a header code sample from my project. You'll see the submission types and the differences I talked about:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xmml="http://www.myDataModel/xmml"> <head> <title>Shopping List</title> <xf:model id="default" > <xf:instance> <xmml:data> <xmml:storeName></xmml:storeName> <xmml:productChoice></xmml:productChoice> </xmml:data> </xf:instance> <xf:submission id="clientList" action="ClientList.xml" method="put" /> <xf:submission id="tempList" action="file:///c:/tmp/ClientList.xml" method="put" replace="none"/> <xf:submission id="reloadList" action="file:///c:/tmp/ClientList.xml" method="get" replace="instance"/> </xf:model>
I've not tried XForms with php and my use is server context only. I only know that php wraps around HTML. HTML is wrapped around XForms. XForms is still wild west territory. You'll learn as you go. It's worth it though. w3schools.com and their xforms tutorial is a good place to start. I ended up learning more advanced things from xsmiles and w3.org.Did a look up on Infopath. The reasons I didn't use it for a class project was due to it's proprietary software. To nutshell Infopath too much, it's just another XML web service and can run async like Ajax. My thoughts are that it's always better to learn the guts, like XForms and XML web services (using REST & SOAP) before bumping up to proprietary software, like Infopath. Most likely, Infopath runs async by creating a data model like the XForms example above and submitting it to a service. I'd have to dig much deeper and it wouldn't probably answer your question enough. :-) Gotta love the details! :LOL: :cool:
-
I'll do a refresher on Infopath. It was interconnected with something uniquely Microsoft, which was why I had to reject it. Can't remember more off-hand. :-( I did a project in XForms. It works, but only in certain browsers. I used a FF add-in, which worked fine. I also tried XSmiles...less stable, but may be better now. It's worth the effort to understand XForms!!! It's GORGEOUS in it's simplicity. Data and presentation are separate. You're able to do more with XForms than you ever could with XHTML & HTML (multiple submssions and types of submissions, locally or on a server and so on). Here's a header code sample from my project. You'll see the submission types and the differences I talked about:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xmml="http://www.myDataModel/xmml"> <head> <title>Shopping List</title> <xf:model id="default" > <xf:instance> <xmml:data> <xmml:storeName></xmml:storeName> <xmml:productChoice></xmml:productChoice> </xmml:data> </xf:instance> <xf:submission id="clientList" action="ClientList.xml" method="put" /> <xf:submission id="tempList" action="file:///c:/tmp/ClientList.xml" method="put" replace="none"/> <xf:submission id="reloadList" action="file:///c:/tmp/ClientList.xml" method="get" replace="instance"/> </xf:model>
I've not tried XForms with php and my use is server context only. I only know that php wraps around HTML. HTML is wrapped around XForms. XForms is still wild west territory. You'll learn as you go. It's worth it though. w3schools.com and their xforms tutorial is a good place to start. I ended up learning more advanced things from xsmiles and w3.org.For XForms use with every recent browser, have a look at XSLTForms : http://www.agencexml.com/xsltforms