• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Design

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Has any one designed a xml for a registration form ?
Any ideas on designing of form, with all input fields (checkbox, textarea,dropdown..)of html.
My idea is below... Any better/known ways to do it?
I want to know the pros and cons of this...
Thanks
<form>
<registration>
<field id="1" name="what's your fistname?" value="" contenttypeIDREF="1" required="y/n" order="1" hasref="y/n"/>
<field id="2" name="Do you like chocolate?" value="" contenttypeIDREF="2" choiceIDREF="300"/>
</registration>
<choice choiceID="300">
<choiceitem dbid="301">Yes</choiceitem>
<choiceitem dbid="301">No</choiceitem>
</choice>
<form>
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wrote a very specialized online editor for a client. Here is an example of what I came up with to make it easier to create the HTML input form:


It combines some information about the relationship of the data field to the parent XML document with a fragment of HTML form markup as a template in the CDATA section. When writing the editing form, my program used the @1 and @2 markers to fill in the current values. Of course this has to be CDATA so the parser won't try to take apart the HTML markup.
Bill
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If you want to have an XML file for kind of Registration form.
Best way is, using "Adobe Form Desgner" tool you design ur form how ever u want, and this tool will automatically generate XML file for the designed PDF form.

Free and Trial download available for "Adobe Form Designer 6.0"

try it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic