topical media & game development

talk show tell print

professional-xml-23-syntax-submit.xml / xml



  <?xml version="1.0" encoding="UTF-8"?>
  <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xf="http://www.w3.org/2002/xforms"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ex="someURI">
    <head>
      <title>Submit</title>
      <xf:model>
        <xf:instance>
          <ex:contact>
            <ex:firstName>Foo</ex:firstName>
            <ex:lastName>deBar</ex:lastName>
            <ex:title>Developer</ex:title>
          </ex:contact>
        </xf:instance>
        <xf:submission id="submit1" method="put" action="file:
C:/temp/output.xml" includenamespaceprefixes="ex"/>

<xf:submission id="submit2" method="get" action="http://localhost:32932/work/Dump.aspx" includenamespaceprefixes="ex" separator="&amp;"/> <xf:submission id="submit3" method="post" action="http://localhost:32932/work/Dump.aspx" includenamespaceprefixes="ex"/> <xf:submission id="submit4" method="multipart-post" action="http://localhost:32932/work/Dump.aspx" includenamespaceprefixes="ex"/> </xf:model> </head> <body> <p> <xf:input ref="ex:firstName"> <xf:label>First Name: </xf:label> </xf:input> <xf:input ref="ex:lastName"> <xf:label>Last Name: </xf:label> </xf:input><br /> <xf:input ref="ex:title"> <xf:label>Title: </xf:label> </xf:input> <br/> <xf:submit submission="submit1"> <xf:label>Save local</xf:label> </xf:submit> <xf:submit submission="submit2"> <xf:label>Submit via GET</xf:label> </xf:submit> <xf:submit submission="submit3"> <xf:label>Submit via POST</xf:label> </xf:submit> <xf:submit submission="submit4"> <xf:label>Submit via Multipart-POST</xf:label> </xf:submit> </p> </body> </html>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.