Is there a standard view for HTML forms?

I am working on a system that should present an html form with typical elements such as a text box, select box, shortcuts, etc., but it can only speak JSON or XML, not HTML.

I could always write my own JSON or XML converter and parser to represent the form in the required format, but I would like to adhere to a certain standard, if one exists, for change management and extensibility. In addition, the standard must have an existing Javascript parser.

I watched XUL , but it does not seem to have form tags and looks like DSL, suitable only for Mozilla-based applications, Also I could not find a Javascript parser for the same.

I believe that this should be a fairly common problem that someone has solved, but I can not find it. Any pointers would be much appreciated.

+5
source share
2 answers

The standard representation for HTML forms is ... HTML forms.

As far as I know, no one has invented an alternative way to introduce them, because, well, why would you? Theyre ad already.

Fortunately, given that HTML can be written as XML (we call it XHTML), XHTML forms already satisfy your XML requirement.

JavaScript, , . HTML JavaScript, / DOM, JavaScript.

HTML- :

HTML XML - XHTML 1.0:

HTML5-, (. http://diveintohtml5.ep.io/forms.html), :

+7
0

All Articles