A submit
element in the HTML body
draws a user interface control that enables the user
to submit the form:
<submit xmlns="http://www.w3.org/2002/xforms" submission="q0">
<label>Order</label>
</submit>
A submission
element in the
model
specifies where and how the data is transmitted:
<model xmlns="http://www.w3.org/2002/xforms" id="p1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<instance>
<doughnuts xmlns="http://www.example.org/doughnuts/">
<quantity xsi:type="xsd:nonNegativeInteger"/>
</doughnuts>
</instance>
<submission action="http://www.example.org/formprocessor.php"
method="post" id="q0" />
</model>
When the user submits the form, the browser
posts
the model element to the URL specified by the action
attribute.
The server responds with an HTTP 200 OK and a typical HTML page (or with various error messages)