Hi there,
Fairly new to XML. Was wondering about the best way to go progress with an idea of using an xml file to generate a an HTML form, and perform some intelligent validation, eg:
This xml could then be used to generate a sensible onSubmit handler in Javascript, or maybe even separate onChange handlers... Has anyone else had a go at anything similar, and could suggest approaches to try / avoid.
Thanks for any advice, cheers Neil
Fairly new to XML. Was wondering about the best way to go progress with an idea of using an xml file to generate a an HTML form, and perform some intelligent validation, eg:
Code:
<parameters>
<parameter name="firstName">
<title>First Name</title>
<validation type="string" />
</parameter>
<parameter name="start">
<title>Start Date</title>
<validation type="date">
<earlierThan name="end">
</validation>
</parameter>
<parameter name="end">
<title>End Date</title>
<validation type="date">
<laterThan name="start">
</validation>
</parameter>
</parameters>
Thanks for any advice, cheers Neil