[refers to http://www.w3schools.com/xforms/default.asp]

What Is XForms?

  • XForms is the next generation of HTML forms
  • XForms is richer and more flexible than HTML forms
  • XForms will be the forms standard in XHTML 2.0
  • XForms is platform and device independent
  • XForms separates data and logic from presentation
  • XForms uses XML to define form data
  • XForms stores and transports data in XML documents
  • XForms contains features like calculations and validations of forms
  • XForms reduces or eliminates the need for scripting
  • XForms is a W3C Recommendation

 

Here we use "ref", we can "bind" as well,which is like the function of  DataSource.
<xforms>

<model>
<instance>
  
<person>
    
<fname/>
    
<lname/>
  
</person>
</instance>
<submission id="form1"
action
="submit.asp"
method
="get"/>
</model>
<input ref="fname"><label>First Name</label></input>
<input ref="lname"><label>Last Name</label></input>
<submit submission="form1"><label>Submit</label></submit>
</xforms>
-----------------------------------------------------------------------------------------------------------

The XForms Processor

An XForms Processor built into the browser will be responsible for submitting the XForms data to a target.

The data can be submitted as XML and could look something like this:

<person>
            <fname>Hege</fname>
            <lname>Refsnes</lname>
            </person>

Or it can be submitted as text, looking something like this:

fname=Hege;lname=Refsnes