Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The standard representation for HTML forms is... HTML forms.</p> <p>As far as I know, no-one’s invented an alternative way to represent them because, well, why would you? They’re declarative already.</p> <p>Thankfully, given that HTML can be written as XML (we call that XHTML), XHTML forms already satisfy your XML requirement.</p> <p>As far as parsing them in JavaScript goes, it depends what you mean by parsing. <a href="http://ejohn.org/blog/pure-javascript-html-parser/" rel="nofollow">John Resig is working on a full HTML parser in JavaScript</a>, but if you’re just looking to read/write values via the DOM, you can do that in JavaScript.</p> <p>The spec for HTML forms is here:</p> <ul> <li><a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html" rel="nofollow">http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html</a></li> </ul> <p>The spec for how to write HTML as XML is the XHTML 1.0 spec:</p> <ul> <li><a href="http://www.w3.org/TR/xhtml1/" rel="nofollow">http://www.w3.org/TR/xhtml1/</a></li> </ul> <p>If you’d rather use HTML5 forms, which adds some new form fields (see <a href="http://diveintohtml5.ep.io/forms.html" rel="nofollow">http://diveintohtml5.ep.io/forms.html</a>), the relevant specs are:</p> <ul> <li>HTML5 forms: <a href="http://dev.w3.org/html5/spec/forms.html#forms" rel="nofollow">http://dev.w3.org/html5/spec/forms.html#forms</a></li> <li>HTML5 as XML: <a href="http://dev.w3.org/html5/spec/the-xhtml-syntax.html#the-xhtml-syntax" rel="nofollow">http://dev.w3.org/html5/spec/the-xhtml-syntax.html#the-xhtml-syntax</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload